X-Git-Url: https://troll.desast.re/troll.git/blobdiff_plain/dcfdddd7a687b2dc2c7574b0e400ea2d02fe3198..9e6c50a065afce798eedf02c7a6dbfe3c4f3b91a:/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;