class Model {
@Inject private MultiplayerGameManager<com.codingame.game.Player> gameManager;
+ long seed;
Random random;
int roadLength;
int initialStones;
class Player {
com.codingame.game.Player gp;
int index;
+ boolean hit;
- Player(int i) { index = i; }
+ Player(int i) {
+ index = i;
+ hit = false;
+ }
private int castlePosition;
public int getCastlePosition() { return castlePosition; }
}
}
- void init(long seed) {
+ void init() {
+ seed = gameManager.getSeed();
random = new Random(seed);
switch (random.nextInt(4)) {
case 0: