}
// 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,
- model.getMultiplier()));
+ model.getMultiplier(), salt));
}
void sendGameTurn() {
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;
}