|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdice_war.AITemplate
dice_war.AI.GoAhead
public class GoAhead
An example of AI, the strategy is simple, attack if it's attackable. arrange more new dices to the nodes which have more enemies in neighbor
Field Summary |
---|
Fields inherited from class dice_war.AITemplate |
---|
edge, edgeList, MAX_DICE, myCountry, nodes, probabilityTable |
Constructor Summary | |
---|---|
GoAhead()
|
Method Summary | |
---|---|
protected void |
arrangeNewDices(int nNewDice)
the core of game play, when it's your turn, UserInterface will call this method. |
protected void |
main()
the core of game play, when it's your turn, UserInterface will call this method. |
Methods inherited from class dice_war.AITemplate |
---|
appendNewDice, attack, isAttackable, run |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GoAhead()
Method Detail |
---|
protected void main()
AITemplate
main
in class AITemplate
protected void arrangeNewDices(int nNewDice)
AITemplate
arrangeNewDices
in class AITemplate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |