LOL-hotfix: right castle was closer to the troll's starting point than left one
authorJBM <jbm@codingame.com>
Thu, 21 May 2020 21:45:43 +0000 (23:45 +0200)
committerJBM <jbm@codingame.com>
Wed, 27 May 2020 14:53:54 +0000 (16:53 +0200)
src/main/java/com/codingame/game/Referee.java

index 2a7afd9..685b458 100644 (file)
@@ -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));