Пример #1
0
        public Game()
        {
            playerOne = new Player();
            playerTwo = new Player();

            currentPlayer = playerOne;

            for (int i = 0; i < dice.Length; i++)
            {
                dice[i] = new Die(rnd);
                dice[i].Roll(); //Startvärden
            }
        }
Пример #2
0
 public void ChangePlayer()
 {
     if (currentPlayer != playerOne) currentPlayer = playerOne;
     else currentPlayer = playerTwo;
 }