Ça trolle…
/
troll.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Leaguify cheating
[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
108b5a6
..
217388a
100644
(file)
--- a/
src/main/java/com/codingame/game/Model.java
+++ b/
src/main/java/com/codingame/game/Model.java
@@
-26,6
+26,11
@@
class Model {
hit = false;
}
+ void loseRound() {
+ hit = true;
+ winner = 1 - index;
+ }
+
private int castlePosition;
public int getCastlePosition() { return castlePosition; }
public void setCastlePosition(int pos) { castlePosition = pos; }