/// <summary> /// Creates a game with the set number of players. if AIPolice is true, the /// total number of player instances will be nrOfHumans + 1 /// </summary> /// <param name="nrOfHumans">The number of human players</param> /// <param name="AIPolice">Should Police be AI-controlled?</param> public void newGame(int nrOfHumans, bool AIPolice) { Game = new BoardController(AIPolice ? nrOfHumans + 1 : nrOfHumans); Game.State.AIPolice = AIPolice; if (AIPolice) { initializeAI(); } }
public GameController() { Game = new BoardController(); if (Game.State.AIPolice) initializeAI(); }