Class: TTT::Human

Inherits:
Player show all
Defined in:
lib/ttt/human.rb

Instance Attribute Summary

Attributes inherited from Player

#side

Instance Method Summary collapse

Methods inherited from Player

#==, #initialize, #move

Constructor Details

This class inherits a constructor from TTT::Player

Instance Method Details

#no_gui?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/ttt/human.rb', line 4

def no_gui?
  false
end

#promptObject



8
9
10
# File 'lib/ttt/human.rb', line 8

def prompt
  "Enter move:"
end