Announce it's the loser who gets destroyed instead of the winner. (spotted by @Astrob...
[troll.git] / src / main / java / com / codingame / game / Model.java
index 4cd1280..e8cdc57 100644 (file)
@@ -104,6 +104,7 @@ class Model {
         }
     }
     int getWinner() { return winner; }
+    int getLoser() { return 1 - winner; }
 
     boolean exhausted() {
         return p0.getStones() <= 0 && p1.getStones() <= 0;