コード例 #1
0
 public bool Play()
 {
     do
     {
         count += Cards.Turn();
         if (count > 21)
         {
             Write.CountCroupier(count);
             return(true);
         }
     }while(count <= 17);
     Write.CountCroupier(count);
     return(false);
 }
コード例 #2
0
        public bool Play()
        {
            ConsoleKeyInfo check;

            do
            {
                count += Cards.Turn();
                Write.PlayerTurn();
                Write.CountPlayer(count);
                if (count > 21)
                {
                    return(true);
                }
                Write.WriteToContinue("take a card");
                check = Console.ReadKey();
            }while(check.Key != ConsoleKey.Escape);
            return(false);
        }
コード例 #3
0
 public Сroupier()
 {
     count += Cards.Turn();
 }
コード例 #4
0
 public Player()
 {
     count += Cards.Turn();
     Write.PlayerTurn();
 }