Exemplo n.º 1
0
 /// <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();
     }
 }
Exemplo n.º 2
0
 public GameController()
 {
     Game = new BoardController();
     if (Game.State.AIPolice) initializeAI();
 }