Endgame status must spring out of opposite corner, not always lower right
[troll.git] / src / main / java / com / codingame / game / Referee.java
index b15b4b0..186ca88 100644 (file)
@@ -31,7 +31,8 @@ public class Referee extends AbstractReferee {
         gameManager.getPlayer(1).model = model.p1;
 
         for (Player p: gameManager.getPlayers()) {
-            p.gameInit(model.roadLength, model.initialStones);
+            p.gameInit(model.roadLength, model.initialStones,
+                       gameManager.getSeed());
         }
 
         view.init(model);
@@ -167,7 +168,7 @@ public class Referee extends AbstractReferee {
 
         if (model.haveWinner()) {
             int loser = model.getLoser();
-            gameManager.getPlayer(loser).view.destroy();
+            gameManager.getPlayer(loser).view.defeat();
             victory = true;
         }
         else if (model.exhausted()) exhausted = true;