Ça trolle…
/
troll.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Early termination
[troll.git]
/
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
4b1315b
..
6866b9b
100644
(file)
--- 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() {