Ça trolle…
/
troll.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Roll back to constant game parameters count for @BlaiseEbuth, as most languages stubs...
[troll.git]
/
src
/
main
/
java
/
com
/
codingame
/
game
/
Player.java
diff --git
a/src/main/java/com/codingame/game/Player.java
b/src/main/java/com/codingame/game/Player.java
index
cb5bb4a
..
936a3f5
100644
(file)
--- a/
src/main/java/com/codingame/game/Player.java
+++ b/
src/main/java/com/codingame/game/Player.java
@@
-16,7
+16,6
@@
import com.codingame.gameengine.module.entities.Sprite;
public class Player extends AbstractMultiplayerPlayer {
Model.Player model;
View.Player view;
public class Player extends AbstractMultiplayerPlayer {
Model.Player model;
View.Player view;
- Random random = new Random();
@Override
public int getExpectedOutputLines() {
@Override
public int getExpectedOutputLines() {
@@
-25,12
+24,9
@@
public class Player extends AbstractMultiplayerPlayer {
// same-typed positional parameters… a disaster waiting to happen
void gameInit(int roadLength, int initialStones, long seed) {
// same-typed positional parameters… a disaster waiting to happen
void gameInit(int roadLength, int initialStones, long seed) {
- int nReserved = random.nextInt(5);
- String reserved = "";
- while (nReserved --> 0) reserved += " 0";
- sendInputLine(String.format("%d %d %d %d%s",
+ sendInputLine(String.format("%d %d %d %d 0",
roadLength, initialStones, seed,
roadLength, initialStones, seed,
- model.getMultiplier()
, reserved
));
+ model.getMultiplier()));
}
void sendGameTurn() {
}
void sendGameTurn() {