Exemplo n.º 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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 3
0
        public static void MenuSelect()
        {
            switch (MainMenu())
            {
            case "y":
            case "yes":
                CoinPile.TotalCoins = CoinPile.CoinPileAmount();
                Players.DetermineStartingPlayer();
                break;

            case "n":
            case "no":
            case "exit":
                ExitGame();
                break;

            default:
                EmptySpace();
                Console.WriteLine("Please type yes or no.");
                MenuSelect();
                break;
            }
        }