X-Git-Url: https://troll.desast.re/troll.git/blobdiff_plain/055ce8e682c4b82d5b52362e88df2f9d6a7d53d6..a78210b2e4295eaf8dee8215d4ffe5e062b4efb3:/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 46841db..00701d1 100644 --- a/src/main/java/com/codingame/game/Model.java +++ b/src/main/java/com/codingame/game/Model.java @@ -112,6 +112,8 @@ class Model { gameManager.addToGameSummary(GameManager.formatErrorMessage("Ill-formed road length: " + buf)); } } + ps.setProperty("roadLength", new Integer(roadLength).toString()); + buf = ps.getProperty("initialStones"); if (buf != null) { try { @@ -128,6 +130,7 @@ class Model { gameManager.addToGameSummary(GameManager.formatErrorMessage("Ill-formed initial stone count: " + buf)); } } + ps.setProperty("initialStones", new Integer(initialStones).toString()); trollPosition = roadLength / 2;