Ça trolle…
/
troll.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LOL-hotfix: right castle was closer to the troll's starting point than left one
[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
2a7afd9
..
685b458
100644
(file)
--- a/
src/main/java/com/codingame/game/Referee.java
+++ b/
src/main/java/com/codingame/game/Referee.java
@@
-61,7
+61,7
@@
public class Referee extends AbstractReferee {
p0.sendInputLine(String.format("%d %d", roadLength, initialStones));
p1 = gameManager.getPlayer(1);
p0.sendInputLine(String.format("%d %d", roadLength, initialStones));
p1 = gameManager.getPlayer(1);
- p1.setCastlePosition(roadLength
-1
);
+ p1.setCastlePosition(roadLength);
p1.setMultiplier(-1);
p1.adjustScore(trollPosition);
p1.sendInputLine(String.format("%d %d", roadLength, initialStones));
p1.setMultiplier(-1);
p1.adjustScore(trollPosition);
p1.sendInputLine(String.format("%d %d", roadLength, initialStones));