Ça trolle…
/
troll.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
diff --git
a/src/main/java/com/codingame/game/Model.java
b/src/main/java/com/codingame/game/Model.java
index
4cd1280
..
e8cdc57
100644
(file)
--- a/
src/main/java/com/codingame/game/Model.java
+++ b/
src/main/java/com/codingame/game/Model.java
@@
-104,6
+104,7
@@
class Model {
}
}
int getWinner() { return winner; }
+ int getLoser() { return 1 - winner; }
boolean exhausted() {
return p0.getStones() <= 0 && p1.getStones() <= 0;