X-Git-Url: https://troll.desast.re/troll.git/blobdiff_plain/e0da785e68b21f4906f4f0bc849bb7bbab1abeb8..59d8ce65d474d6d46b16cae26ebb6db7cda5c8b2:/src/main/java/com/codingame/game/Referee.java diff --git a/src/main/java/com/codingame/game/Referee.java b/src/main/java/com/codingame/game/Referee.java index b15b4b0..186ca88 100644 --- a/src/main/java/com/codingame/game/Referee.java +++ b/src/main/java/com/codingame/game/Referee.java @@ -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;