public Game(Participant.Participant player, Participant.Participant dealer, Deck.Deck deck, IInput input, Message.Message message) { Player = player; Dealer = dealer; Deck = deck; Input = input; Message = message; }
public void DisplayHand(Participant.Participant participant) { int score = participant.GetScore(); List <Card.Card> hand = participant.Hand; string prefix = participant.Role == Role.Player ? "You are" : "The Dealer is"; _output.WriteLine(); _output.WriteLine($"{prefix} currently at {score}"); _output.Write("with the hand "); foreach (Card.Card card in hand) { _output.Write($"[{card.Value} of {card.Suit}] "); } _output.WriteLine(); }
public void DisplayDraw(Participant.Participant participant) { Card.Card newCard = participant.Hand[^ 1];