Beispiel #1
0
 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;
 }
Beispiel #2
0
        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();
        }
Beispiel #3
0
 public void DisplayDraw(Participant.Participant participant)
 {
     Card.Card newCard = participant.Hand[^ 1];