Ça trolle…
/
troll.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug report from @Illedan
[troll.git]
/
src
/
main
/
java
/
com
/
codingame
/
game
/
Player.java
diff --git
a/src/main/java/com/codingame/game/Player.java
b/src/main/java/com/codingame/game/Player.java
index
936a3f5
..
79d5aeb
100644
(file)
--- a/
src/main/java/com/codingame/game/Player.java
+++ b/
src/main/java/com/codingame/game/Player.java
@@
-23,10
+23,10
@@
public class Player extends AbstractMultiplayerPlayer {
}
// same-typed positional parameters… a disaster waiting to happen
}
// same-typed positional parameters… a disaster waiting to happen
- void gameInit(int roadLength, int initialStones, long seed) {
- sendInputLine(String.format("%d %d %d %d
0
",
+ void gameInit(int roadLength, int initialStones, long seed
, long salt
) {
+ sendInputLine(String.format("%d %d %d %d
%d
",
roadLength, initialStones, seed,
roadLength, initialStones, seed,
- model.getMultiplier()));
+ model.getMultiplier()
, salt
));
}
void sendGameTurn() {
}
void sendGameTurn() {
@@
-61,7
+61,7
@@
public class Player extends AbstractMultiplayerPlayer {
catch (NoSuchElementException e) { type = Action.Invalid; return; }
s.useDelimiter(eol);
catch (NoSuchElementException e) { type = Action.Invalid; return; }
s.useDelimiter(eol);
- if (s.hasNext(rest)) messageString = s.next(rest);
+ if (s.hasNext(rest)) messageString = s.next(rest)
.trim()
;
else messageString = "";
type = Action.Throw;
}
else messageString = "";
type = Action.Throw;
}