Class: Dat::Bot

Inherits:
Object
  • Object
show all
Defined in:
lib/dat/bots/bot.rb

Direct Known Subclasses

SimpleBot

Instance Method Summary collapse

Instance Method Details

#bot?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/dat/bots/bot.rb', line 7

def bot?
  true
end

#init(game) ⇒ Object



3
4
5
# File 'lib/dat/bots/bot.rb', line 3

def init(game)
  @game = game
end

#moveObject



15
16
17
# File 'lib/dat/bots/bot.rb', line 15

def move
  # Implement this function
end

#to_sObject



11
12
13
# File 'lib/dat/bots/bot.rb', line 11

def to_s
  "Bot-#{object_id}"
end