gameManager.getPlayer(1).model = model.p1;
for (Player p: gameManager.getPlayers()) {
- p.gameInit(model.roadLength, model.initialStones);
+ p.gameInit(model.roadLength, model.initialStones,
+ gameManager.getSeed());
}
view.init(model);
if (model.haveWinner()) {
int loser = model.getLoser();
- gameManager.getPlayer(loser).view.destroy();
+ gameManager.getPlayer(loser).view.defeat();
victory = true;
}
else if (model.exhausted()) exhausted = true;