Moar trolling. Adapted from @Astrobytes.
[troll.git] / src / main / java / com / codingame / game / Model.java
index 46841db..00701d1 100644 (file)
@@ -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;