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.


Constructor Summary
SimpleRobot()
           
 
Method Summary
 Move bestAttack()
           
 Move bestBorderPlacement()
          A weighting based on the number of foreign borders.
 Move bestFortify()
          Random move
 Move bestMove(int mode)
           
 Move bestPlacement()
           
 Move bestSelection()
           
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

SimpleRobot

public SimpleRobot()
Method Detail

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.