Early termination
[troll.git] / src / main / java / com / codingame / game / Referee.java
index 4b1315b..6866b9b 100644 (file)
@@ -269,6 +269,10 @@ public class Referee extends AbstractReferee {
                 endGame();
             }
         }
+
+        if (p0.getStones() <= 0 && p1.getStones() <= 0) {
+            endGame();
+        }
     }
 
     private void endGame() {