** DONE html for salting the seed
** TODO Leagues (need multiround)
** TODO Multiround (need early termination)
+** TODO Leaguification
** DONE Early termination (need time rationalization)
** DONE Time rationalization (need code reorg)
** TODO Code cleanup
--- /dev/null
+package com.codingame.game;
+
+import com.codingame.gameengine.core.MultiplayerGameManager;
+import com.codingame.gameengine.core.AbstractMultiplayerPlayer;
+import com.google.inject.Inject;
+import com.google.inject.Singleton;
+
+@Singleton
+class LeagueManager {
+ enum CheatLevel {
+ ALLOWED,
+ TOLERATED,
+ FORBIDDEN
+ }
+
+ CheatLevel cheatLevel;
+
+ @Inject
+ LeagueManager(MultiplayerGameManager<AbstractMultiplayerPlayer> gameManager)
+ {
+ cheatLevel = CheatLevel.FORBIDDEN;
+ }
+}
public class Referee extends AbstractReferee {
@Inject private GameManager gameManager;
@Inject private GodModeManager gm;
+ @Inject private LeagueManager league;
@Inject private View view;
@Inject private Model model;