Пример #1
0
        static void Main(string[] args)
        {
            // 1. Create needed instances
            Player   player   = new Player();
            Gandolon Gandolon = new Gandolon();

            // 2. Display Introduction screen
            Gandolon.DisplayIntroductionScreen();

            // 3. Make experience more humanoid
            Thread.Sleep(1000);

            // 4. Create new Poker-Deck, cards can be drawn from
            PokerDeck.GeneratePokerDeck();

            // 5. Display the 5 cards to select from
            Gandolon.DisplayCardsSelection();

            // 6. Display a call to action screen, player knows what to do next
            Gandolon.DisplayCallToActionScreen();

            // 7. Process player input to a number
            player.ProcessPlayerInput();

            // 8. Give the player a card and saves it into field "holdingCard"
            player.holdingCard = Gandolon.GivePlayerACard(player);

            // 9. Display the instruction for revealing the drawn card to the user
            Gandolon.DisplayChosenCardInstructionsScreen(player);

            // 10. Display the drawn card to the user
            Gandolon.RevealCardToPlayer(player.holdingCard);

            // 11. Make experience more humanoid
            Thread.Sleep(1000);

            // 12. Display the wait for player screen
            Gandolon.DisplayWaitForPlayerScreen();

            // 13. Display the simulation of a thinking Gandolon
            Gandolon.DisplayThinkingSimulationScreen();

            // 14. Display the final result screen
            Gandolon.DisplayGuessedCardScreen(player);

            // 15. Wait for the final answer of the player to end the game
            Gandolon.WaitForPlayerAndDisplayFinalAnswer();
        }
Пример #2
0
 public Card GivePlayerACard(Player player)
 {
     return(PokerDeck.DrawCard());
 }