Exemple #1
0
        public static void PlayerMove()
        {
            playerTurn = true;

            Menu.EmptySpace();
            Console.WriteLine("It's your Turn!");

            CoinPile.DisplayCoins();

            Menu.EmptySpace();
            Console.WriteLine("How many coins would you like to take?");
            int inNum = Int32.Parse(Console.ReadLine());

            CoinPile.RemoveCoins(inNum);
            GameFunctions.CheckScore();
            AIMove();
        }
Exemple #2
0
        public static void AIMove()
        {
            playerTurn = false;

            int AITake = CoinPile.CoinCount();

            Menu.EmptySpace();
            Console.WriteLine("It's the AI's Turn!");

            CoinPile.DisplayCoins();

            Menu.EmptySpace();
            Console.WriteLine("The AI will take " + AITake + " coin(s).");

            CoinPile.RemoveCoins(AITake);
            GameFunctions.CheckScore();
            PlayerMove();
        }