Lab 3
Lab 3
Overview
This lab involves modifying a Blackjack game created using classes. See:
https://en.wikipedia.org/wiki/Blackjack for the rules of Blackjack.
The object of the game is to win money by creating card totals higher than those of the dealer's hand
but not exceeding 21, or by stopping at a total in the hope that the dealer will bust. On their turn,
players choose to "hit" (take a card) or "stand" (end their turn and stop without taking a card).
Face cards are worth 10, and Aces are worth either 1 or 11, depending on what is more advantageous
for the hand evaluation. A hand evaluated with an Ace worth 11 is called a “soft” hand.
Tasks:
Submission:
Grading
• 2 points: all fields are private, and the code still works.
• 1 point: user can’t bet more money than they have.
• 1 point: code follows the coding guidelines and is easy to read and understand.