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); }
public Player() { _cards = new List <Card>(); PlayerType = PlayerClassification.Player; BettingBank = new BettingBank(); }