uk.org.redfelineninja.risk.robot
Class RandomRobot

java.lang.Object
  |
  +--uk.org.redfelineninja.risk.robot.Robot
        |
        +--uk.org.redfelineninja.risk.robot.RandomRobot

public class RandomRobot
extends Robot

This is currently a random legal mover.


Constructor Summary
RandomRobot()
           
 
Method Summary
 Move bestMove(int mode)
          Return a random move.
static void main(java.lang.String[] args)
           
 
Methods inherited from class uk.org.redfelineninja.risk.robot.Robot
getIdentity, main, setGame, setPlayer, setServer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomRobot

public RandomRobot()
Method Detail

bestMove

public Move bestMove(int mode)
Return a random move.

Specified by:
bestMove in class Robot

main

public static void main(java.lang.String[] args)