Exemplo n.º 1
0
 /*
  * Turn-based initialization
  * @see riskarena.RiskBot#initTurn()
  */
 public void initTurn() {
   card.setVictory(false); // Signal that a victory has not been achieved this turn
   eval.refresh(
       "initTurn() in Awesome"); // The board state has changed, refresh the Evaluation instance
 }
Exemplo n.º 2
0
 /*
  * After a victory, always choose to occupy the gained territory with as many armies as possible
  * @see riskarena.RiskBot#fortifyAfterVictory(int, int, int, int)
  */
 public void fortifyAfterVictory(int attacker, int defender, int min, int max) {
   // Consider attacking again with the victorious army
   attackDecider.notifyOfVictory(attacker, defender);
   card.setVictory(true);
   to_game.sendInt(afterVictory.decide(attacker, defender, min, max));
 }