X-Git-Url: https://troll.desast.re/troll.git/blobdiff_plain/055ce8e682c4b82d5b52362e88df2f9d6a7d53d6..aa30a90760aead679e9ee3dd88d80761bf2faf22:/src/main/java/com/codingame/game/Model.java?ds=sidebyside 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;