import com.codingame.gameengine.core.AbstractReferee;
import com.codingame.gameengine.core.GameManager;
import com.codingame.gameengine.core.MultiplayerGameManager;
import com.codingame.gameengine.core.AbstractReferee;
import com.codingame.gameengine.core.GameManager;
import com.codingame.gameengine.core.MultiplayerGameManager;
-import com.codingame.gameengine.module.entities.GraphicEntityModule;
-import com.codingame.gameengine.module.entities.Rectangle;
-import com.codingame.gameengine.module.entities.Sprite;
-import com.codingame.gameengine.module.entities.Text;
-import com.codingame.gameengine.module.entities.Curve;
+import com.codingame.game.GodModeManager;
import com.google.inject.Inject;
import com.google.inject.Provider;
public class Referee extends AbstractReferee {
@Inject private MultiplayerGameManager<Player> gameManager;
import com.google.inject.Inject;
import com.google.inject.Provider;
public class Referee extends AbstractReferee {
@Inject private MultiplayerGameManager<Player> gameManager;
model.init(gameManager.getSeed());
gameManager.getPlayer(0).model = model.p0;
gameManager.getPlayer(1).model = model.p1;
for (Player p: gameManager.getPlayers()) {
p.gameInit(model.roadLength, model.initialStones,
model.init(gameManager.getSeed());
gameManager.getPlayer(0).model = model.p0;
gameManager.getPlayer(1).model = model.p1;
for (Player p: gameManager.getPlayers()) {
p.gameInit(model.roadLength, model.initialStones,
for (Player player : gameManager.getActivePlayers()) {
player.view.throwStones(player.stoneThrow);
delta += player.model.getMultiplier() * player.stoneThrow;
for (Player player : gameManager.getActivePlayers()) {
player.view.throwStones(player.stoneThrow);
delta += player.model.getMultiplier() * player.stoneThrow;
player.stoneThrow = player.model.getStones();
player.model.setStones(0);
delta += player.stoneThrow * player.model.getMultiplier();
player.stoneThrow = player.model.getStones();
player.model.setStones(0);
delta += player.stoneThrow * player.model.getMultiplier();