uk.org.redfelineninja.risk.robot
Class SimpleRobot
java.lang.Object
|
+--uk.org.redfelineninja.risk.robot.Robot
|
+--uk.org.redfelineninja.risk.robot.SimpleRobot
- public class SimpleRobot
- extends Robot
This is a simple example robot showing how to write vector players for the
Risk Arena.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleRobot
public SimpleRobot()
bestMove
public Move bestMove(int mode)
- Specified by:
bestMove
in class Robot
main
public static void main(java.lang.String[] args)
bestPlacement
public Move bestPlacement()
bestSelection
public Move bestSelection()
bestAttack
public Move bestAttack()
bestFortify
public Move bestFortify()
- Random move
bestBorderPlacement
public Move bestBorderPlacement()
- A weighting based on the number of foreign borders.