From: JBM Date: Wed, 20 May 2020 14:53:19 +0000 (+0200) Subject: Early termination X-Git-Url: https://troll.desast.re/troll.git/commitdiff_plain/076ea5bbdda8751cd178b657157d3a08458b7c7b?ds=sidebyside;hp=9b4fddb8c0b4186907dd311efc77a3b90a2b895d Early termination --- diff --git a/config/statement_en.html b/config/statement_en.html index b47d627..88c6b65 100644 --- a/config/statement_en.html +++ b/config/statement_en.html @@ -79,4 +79,19 @@ Just read the sample code. You can figure this out. +
+

Change Log

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