示例#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();
 }