//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); }
//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); } }