net.bluebones.tictactoe
Class Boring

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

public class Boring
extends Object
implements Player

A very stoopid AI player for TicTacToe. He just looks for the first available square and moves there.

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

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

Constructor Detail

Boring

public Boring()
Method Detail

getMove

public Move getMove(byte[][] board,
                    Move prev,
                    byte player)
Gets this player's next move. It is always the next available square.

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.
player - int representing the pieces this Player is playing with. One of TicTacToe.NOUGHTS or TicTacToe.CROSSES
Returns:
Move Next move for this player.