Class: Dat::Bot
- Inherits:
-
Object
- Object
- Dat::Bot
- Defined in:
- lib/dat/bots/bot.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#bot? ⇒ 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 |
#move ⇒ Object
15 16 17 |
# File 'lib/dat/bots/bot.rb', line 15 def move # Implement this function end |
#to_s ⇒ Object
11 12 13 |
# File 'lib/dat/bots/bot.rb', line 11 def to_s "Bot-#{object_id}" end |