Exemplo n.º 1
0
 //costruttore
 public Game(int geeseNumber)
 {
     this.geeseNumber = geeseNumber;
     board            = new PawnType[7, 7];  //inizializzata a 0, quindi con tutti PawnType a None
     winningBoards    = MyUtility.CreateWinningBoards();
     correctMoves     = MyUtility.CreateCorrectMoves();
     //InitializeBoard();
     Reset();
     this.PostNotification(beginGameNotification);
 }
Exemplo n.º 2
0
 //costruttore
 public Game(int geeseNumber, bool isSimulationReceived)
 {
     this.geeseNumber = geeseNumber;
     board            = new PawnType[7, 7];  //inizializzata a 0, quindi con tutti PawnType a None
     winningBoards    = MyUtility.CreateWinningBoards();
     correctMoves     = MyUtility.CreateCorrectMoves();
     isSimulation     = isSimulationReceived;
     Reset();
     if (!isSimulation)
     {
         this.PostNotification(finishedPlacingPawnsNotification);
     }
 }