Question
Design and implement an object-oriented program using Python for a simple game of blackjack that provides for one player and a dealer (the computer). Console
Design and implement an object-oriented program using Python for a simple game of blackjack that
provides for one player and a dealer (the computer).
Console
Blackjack
DEALER'S SHOW CARD:
9 of Clubs
YOUR CARDS:
2 of Hearts
Queen of Clubs
Hit or stand? (hit/stand): hit
YOUR CARDS:
2 of Hearts
Queen of Clubs
7 of Clubs
Hit or stand? (hit/stand): stand
DEALER'S CARDS:
9 of Clubs
7 of Spades
Queen of Spades
YOUR POINTS: 19
DEALER'S POINTS: 26
Yay! The dealer busted. You win!
Play again? (y/n): n
Come back soon!
Specifications
?Design and implement the classes for the business tier.
?Use functions to implement the user interface tier.
?Store the code for each tier in its own file.
?If necessary, learn the rules of Blackjack by researching it on the web.
?Use a standard 52-card deck of playing cards.
?The dealer must continue taking cards until the dealers hand has at least 17 points.
?Dont implement betting.
? Dont allow a player to split a hand or double down.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started