Ejemplo n.º 1
0
 /// <summary>
 /// initializes the game and assigns the input delegate
 /// </summary>
 /// <param name="inputDel">The method that returns input as an int</param>
 public void Initialize(inputDelegate inputDel, bool isP1CPU, bool isP2CPU,
                        Player.CPUDifficulty p1diff, Player.CPUDifficulty p2diff)
 {
     _inputDelegate = inputDel;
     Player1        = new Player('O', 'X', isP1CPU, true, p1diff);
     Player2        = new Player('X', 'O', isP2CPU, false, p2diff);
     RestartGame();
 }
Ejemplo n.º 2
0
        public static void Settings_P2Difficulty()
        {
            if (P2Difficulty == (Player.CPUDifficulty) 2)
            {
                P2Difficulty = 0;
            }
            else
            {
                P2Difficulty++;
            }

            SettingsOption();
        }