Ça trolle…
/
troll.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reorganize View/Player
[troll.git]
/
src
/
main
/
java
/
com
/
codingame
/
game
/
Referee.java
diff --git
a/src/main/java/com/codingame/game/Referee.java
b/src/main/java/com/codingame/game/Referee.java
index
b15b4b0
..
186ca88
100644
(file)
--- a/
src/main/java/com/codingame/game/Referee.java
+++ b/
src/main/java/com/codingame/game/Referee.java
@@
-31,7
+31,8
@@
public class Referee extends AbstractReferee {
gameManager.getPlayer(1).model = model.p1;
for (Player p: gameManager.getPlayers()) {
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);
}
view.init(model);
@@
-167,7
+168,7
@@
public class Referee extends AbstractReferee {
if (model.haveWinner()) {
int loser = model.getLoser();
if (model.haveWinner()) {
int loser = model.getLoser();
- gameManager.getPlayer(loser).view.de
stroy
();
+ gameManager.getPlayer(loser).view.de
feat
();
victory = true;
}
else if (model.exhausted()) exhausted = true;
victory = true;
}
else if (model.exhausted()) exhausted = true;