Ça trolle…
/
troll.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup and meta updates
[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
b678534
..
979e283
100644
(file)
--- a/
src/main/java/com/codingame/game/Referee.java
+++ b/
src/main/java/com/codingame/game/Referee.java
@@
-30,16
+30,16
@@
public class Referee extends AbstractReferee {
gameManager.getPlayer(0).model = model.p0;
gameManager.getPlayer(1).model = model.p1;
gameManager.getPlayer(0).model = model.p0;
gameManager.getPlayer(1).model = model.p1;
- for (Player p : gameManager.getPlayers()) {
- p.sendInputLine(String.format("%d %d", model.roadLength, model.initialStones));
+ for (Player p: gameManager.getPlayers()) {
+ p.sendInputLine(String.format("%d %d",
+ model.roadLength,
+ model.initialStones));
}
view.init(model);
}
view.init(model);
-
gameManager.getPlayer(0).view = view.p0;
gameManager.getPlayer(1).view = view.p1;
gameManager.getPlayer(0).view = view.p0;
gameManager.getPlayer(1).view = view.p1;
-
- gameManager.setFrameDuration(2000); // XXX
+ gameManager.setFrameDuration(2000);
}
@Override
}
@Override
@@
-56,10
+56,10
@@
public class Referee extends AbstractReferee {
for (Player player : gameManager.getActivePlayers()) {
Model.Player p = player.model;
{
for (Player player : gameManager.getActivePlayers()) {
Model.Player p = player.model;
{
- int trollDistance = p.getTrollDistance();
- int stones = p.getStones();
- int oppStones = p.getOppStones();
-
player.sendInputLine(String.format("%d %d %d", trollDistance, stones, oppStones
));
+ player.sendInputLine(String.format("%d %d %d",
+ p.getTrollDistance(),
+ p.getStones(),
+
p.getOppStones()
));
}
player.execute();
}
}
player.execute();
}