Exemplo n.º 1
0
        public static void launchmenu(Game game, out bool exit)
        {
            Console.WriteLine("xXx---- Kurtis Black Jack ----xXx");
            Readers.ReadChoice("Choice? : ", LaunchOptions, out int selection);
            switch (selection)
            {
            case (1):
                game.Restart();
                game.GameStart();
                break;

            case (2):
                game.ShowDeck();
                break;

            case 3:
                exit = true;
                return;
            }
            if (again)
            {
                exit = false;
            }
            else
            {
                exit = true;
            }
        }
Exemplo n.º 2
0
 public static void HitStay(Game game, out bool Hit)
 {
     Readers.ReadChoice("", HitStayOptions, out int selection);
     Console.CursorLeft = 0;
     if (selection == 1)
     {
         Hit = true;
     }
     else
     {
         Hit = false;
     }
 }
Exemplo n.º 3
0
        private static void PlayAgain()
        {
            Console.Clear();
            Console.ResetColor();
            Console.SetCursorPosition(0, 0);
            Readers.ReadChoice("Play again? : ", Replay, out int selection);
            switch (selection)
            {
            case 1:
                again = true;
                return;

            default:
                again = false;
                return;
            }
        }