From 927d39e66672341d9d1e281accf0633747ea715f Mon Sep 17 00:00:00 2001 From: JBM Date: Thu, 21 May 2020 23:45:43 +0200 Subject: [PATCH] LOL-hotfix: right castle was closer to the troll's starting point than left one --- src/main/java/com/codingame/game/Referee.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/codingame/game/Referee.java b/src/main/java/com/codingame/game/Referee.java index 2a7afd9..685b458 100644 --- 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); - p1.setCastlePosition(roadLength-1); + p1.setCastlePosition(roadLength); p1.setMultiplier(-1); p1.adjustScore(trollPosition); p1.sendInputLine(String.format("%d %d", roadLength, initialStones)); -- 2.30.2