Hotfix: (from @pb4) a dead player isn't granted an early termination
[troll.git] / src / main / java / com / codingame / game / Referee.java
index dfa3324..3aef88d 100644 (file)
@@ -172,6 +172,8 @@ public class Referee extends AbstractReferee {
         boolean noStones = true;
         int delta = 0;
         for (Player player : gameManager.getActivePlayers()) {
+            if (model.haveWinner() && player.getIndex() == model.getLoser())
+                continue;
             player.stoneThrow = player.model.getStones();
             player.model.setStones(0);
             delta += player.stoneThrow * player.model.getMultiplier();