knockabout
Class RandomPlayer

java.lang.Object
  extended byknockabout.Player
      extended byknockabout.RandomPlayer

public class RandomPlayer
extends Player


Field Summary
 
Fields inherited from class knockabout.Player
BLACK, DRAW, NOCOLOR, YELLOW
 
Constructor Summary
RandomPlayer()
           
 
Method Summary
 Move chooseMove(Board board)
           
 
Methods inherited from class knockabout.Player
getMyColor, getMyName, opponentColor, setMyColor, setMyName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomPlayer

public RandomPlayer()
Method Detail

chooseMove

public Move chooseMove(Board board)
Specified by:
chooseMove in class Player
Parameters:
board - The current board position
Returns:
The move that seems the most promising for the agent