X-Git-Url: https://troll.desast.re/troll.git/blobdiff_plain/424174766971a11af0e953a6d5a328d466b8f68b..5c8d8d332a271b24fba9d3a2ea74a43bda8e70bd:/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 b56cade..166344b 100644 --- a/src/main/java/com/codingame/game/Referee.java +++ b/src/main/java/com/codingame/game/Referee.java @@ -35,6 +35,7 @@ public class Referee extends AbstractReferee { } view.init(model); + gameManager.getPlayer(0).view = view.p0; gameManager.getPlayer(1).view = view.p1; @@ -45,6 +46,8 @@ public class Referee extends AbstractReferee { public void gameTurn(int turn) { // System.err.println("Starting turn " + turn); + view.startTurn(); + boolean disqual = false; boolean victory = false; boolean exhausted = false; @@ -61,6 +64,8 @@ public class Referee extends AbstractReferee { player.execute(); } + // SDK @#%^&! arbitrary sequence point: last input < first output + for (Player player : gameManager.getActivePlayers()) { Model.Player p = player.model; @@ -87,6 +92,7 @@ public class Referee extends AbstractReferee { } else if (stones > 0) { player.view.animateStones(stones); + player.view.updateStoneCounter(); } } catch (InvalidAction e) {