java.lang.Object | +--com.ibm.ruler.Ruler | +--MyRuler
This is the class that you must implement to enable your ruler within the CodeRuler environment. Adding code to these methods will give your ruler its personality and allow it to compete.
Field Summary |
---|
Fields inherited from class com.ibm.ruler.Ruler |
---|
MOVE_E, MOVE_N, MOVE_NE, MOVE_NONE, MOVE_NW, MOVE_S, MOVE_SE, MOVE_SW, MOVE_W |
Method Summary | |
---|---|
java.lang.String |
getRulerName()
Return the name of your ruler. |
java.lang.String |
getSchoolName()
Return the name of your school. |
void |
initialize()
Called to give you a chance to do initialization. |
void |
orderSubjects(int lastMoveTime)
This method is called each turn to allow you to give orders to your peasants, knights, and castles. |
Methods inherited from class com.ibm.ruler.Ruler |
---|
capture, createKnights, createPeasants, getCastles, getKnights, getOwnedLandCount, getPeasants, getPoints, move, move |
Method Detail |
public java.lang.String getRulerName()
Ruler
getRulerName
in interface IRuler
getRulerName
in class Ruler
public java.lang.String getSchoolName()
Ruler
getSchoolName
in interface IRuler
getSchoolName
in class Ruler
public void initialize()
Ruler
initialize
in class Ruler
public void orderSubjects(int lastMoveTime)
Ruler
orderSubjects
in class Ruler