Example #1
0
        private bool PlayerCanPlayOn()
        {
            var handTotal = GetHandTotal();

            if (handTotal > 21)
            {
                Console.ForegroundColor = ConsoleColor.Green;
                Console.WriteLine("==================");
                Console.WriteLine("|| Player Busts ||");
                Console.WriteLine("==================");
                Console.ForegroundColor = ConsoleColor.White;
                BettingBank.ProcessLoss();
                Bust       = true;
                FinalScore = handTotal;
                return(false);
            }

            if (handTotal == 21)
            {
                FinalScore = handTotal;
                return(false);
            }

            return(true);
        }
Example #2
0
 public Player()
 {
     _cards      = new List <Card>();
     PlayerType  = PlayerClassification.Player;
     BettingBank = new BettingBank();
 }