Class: ClientInterface
- Inherits:
-
Object
- Object
- ClientInterface
- Defined in:
- lib/software_challenge_client/client_interface.rb
Overview
The interface a client should implement to work with the gem.
Instance Attribute Summary collapse
-
#gamestate ⇒ Object
Is updated by the gem, when a new gamestate is received from the server.
Instance Method Summary collapse
-
#move_requested ⇒ Move
Is called when the server requests a move from the client.
Instance Attribute Details
#gamestate ⇒ Object
Is updated by the gem, when a new gamestate is received from the server.
6 7 8 |
# File 'lib/software_challenge_client/client_interface.rb', line 6 def gamestate @gamestate end |
Instance Method Details
#move_requested ⇒ Move
Is called when the server requests a move from the client.
10 11 12 |
# File 'lib/software_challenge_client/client_interface.rb', line 10 def move_requested raise 'Not yet implemented' end |