Game one – Blackjack
This is the first of two games we will implement using our library of structures and functions from dealer.c
. We will have a complete and playable Blackjack card game between the dealer and one player.
Introducing Blackjack
Blackjack is a casino card game played between the dealer and one or more players. It is also known as 21. In our implementation, there will only be the dealer and you, the player. Blackjack uses all 52 cards from 1 to 8 decks. In our implementation, there will be only one deck. The deck is shuffled and each player is given two initial cards, as is the dealer. One of the dealer’s dealt cards is kept hidden until it is the dealer’s turn to play. In our implementation, all cards will be visible.
The face value of each hand is calculated. Each card’s face value is its number. Jack, queen, and king count as 10. Aces count as either 1 or 11. In our implementation, aces will always count as 11.
The...