net.bluebones.tictactoe
Class Human

java.lang.Object
  extended by net.bluebones.tictactoe.Human
All Implemented Interfaces:
Player

public class Human
extends Object
implements Player

Implementation of Player that allows for a human to play via STDIN.

Version:
1.1
Author:
Thomas David Baker, bakert+tictactoe@gmail.com

Constructor Summary
Human()
           
 
Method Summary
 Move getMove(byte[][] board, Move prev, byte color)
          Gets the next move of this player.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Human

public Human()
Method Detail

getMove

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

Specified by:
getMove in interface 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 of this player.