private void PlayTurn() { //roll the dice Dice.Roll(); //carry out result of roll //3 doubles in a row = jail if (Dice.IsThirdDouble()) { Player.GoTo(SquareName.Jail); } else { Player.Move(Dice.Value()); } //carry out other results if applicable switch (Board.GameSquares[Player.Square].SquareEvent) { case SquareEvent.GoToJail: Player.GoTo(SquareName.Jail); break; case SquareEvent.DrawChance: ChanceDeck.Draw(Player); break; case SquareEvent.DrawComChest: ComChestDeck.Draw(Player); break; } //update square stats Board.GameSquares[Player.Square].TimesVisited++; }
public MonopolyGame() { Player = new Player(); //Dice = new Dice(6); Dice = new Dice(4); ChanceDeck = new ChanceDeck(); ComChestDeck = new ComChestDeck(); Board = new GameBoard(); }