Sha256: ac85f76445a87f53365d862d03ea9fa99abb232c535cd0611b4973b8388aede3

Contents?: true

Size: 385 Bytes

Versions: 10

Compression:

Stored size: 385 Bytes

Contents

# encoding: UTF-8

# The interface a client should implement to work with the gem.
class ClientInterface
  # Is updated by the gem, when a new gamestate is received from the server.
  attr_accessor :gamestate

  # Is called when the server requests a move from the client.
  # @return [Move] Needs to return a valid move.
  def move_requested
    raise 'Not yet implemented'
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
software_challenge_client-1.2.1 lib/software_challenge_client/client_interface.rb
software_challenge_client-1.2.0 lib/software_challenge_client/client_interface.rb
software_challenge_client-1.1.0 lib/software_challenge_client/client_interface.rb
software_challenge_client-1.0.0 lib/software_challenge_client/client_interface.rb
software_challenge_client-0.3.4 lib/software_challenge_client/client_interface.rb
software_challenge_client-0.3.3 lib/software_challenge_client/client_interface.rb
software_challenge_client-0.3.2 lib/software_challenge_client/client_interface.rb
software_challenge_client-0.3.1 lib/software_challenge_client/client_interface.rb
software_challenge_client-0.3.0 lib/software_challenge_client/client_interface.rb
software_challenge_client-0.2.0 lib/software_challenge_client/client_interface.rb