net.bluebones.tictactoe
Interface Player

All Known Implementing Classes:
AI, Boring, Human

public interface Player

Interface to be implemented by players for the game of TicTacToe. A Human implementation is provided in this package so it is expected that this class will be implemented by AIs but other human classes could be devised also.


Method Summary
 Move getMove(byte[][] board, Move prev, byte color)
          Gets the next move for this player.
 

Method Detail

getMove

Move getMove(byte[][] board,
             Move prev,
             byte color)
Gets the next move for this player.

Parameters:
board - Board representation of the current game state.
prev - Move representing the previous move in the the game.
color - int representing the pieces this Player is playing with. One of TicTacToe.NOUGHTS or TicTacToe.CROSSES
Returns:
Move Next move for the player.