Ça trolle…
/
troll.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Activate cheating
[troll.git]
/
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
(file)
--- 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));
}
}
gameManager.addToGameSummary(GameManager.formatErrorMessage("Ill-formed road length: " + buf));
}
}
+ ps.setProperty("roadLength", new Integer(roadLength).toString());
+
buf = ps.getProperty("initialStones");
if (buf != null) {
try {
buf = ps.getProperty("initialStones");
if (buf != null) {
try {
@@
-128,6
+130,7
@@
class Model {
gameManager.addToGameSummary(GameManager.formatErrorMessage("Ill-formed initial stone count: " + buf));
}
}
gameManager.addToGameSummary(GameManager.formatErrorMessage("Ill-formed initial stone count: " + buf));
}
}
+ ps.setProperty("initialStones", new Integer(initialStones).toString());
trollPosition = roadLength / 2;
trollPosition = roadLength / 2;