Interface Player


public interface Player

Specifies the interface that all players must adhere to. In particular, each player must be able to compute the next move to be made from any given (reachable) state.


Method Summary
 Move getNextMove(GameState gs)
          Returns the move selected to be played next from the given game state gs.
 

Method Detail

getNextMove

public Move getNextMove(GameState gs)
Returns the move selected to be played next from the given game state gs.

Parameters:
gs - a given game state, including board position and whose turn it is
Returns:
the selected move