private void Move(Cup cup) { for (int i = 0; i < cup.LastValue; i++) { Step(); } CurrentSquare.LandOn(this); }
public Game(int numPlayers, Cup cup = null) { if (numPlayers > 10 || numPlayers < 2) { throw new ArgumentException(); } InitializeBoard(); InitializeDice(cup); InitializePlayers(numPlayers); }
private void InitializeDice(Cup cup) { if (cup == null) { Cup = new Cup(2); } else { Cup = cup; } }
public void TakeTurn(Cup cup) { cup.Roll(); Move(cup); if (cup.LastRollWasDoubles && doublesCounter < 2) { doublesCounter++; TakeTurn(cup); } doublesCounter = 0; }