Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Design and implement an object-oriented program using Python for a simple game o

ID: 3718918 • Letter: D

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

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 dealer’s hand has at least 17 points.

?Don’t implement betting.

? Don’t allow a player to “split” a hand or “double down.”

Explanation / Answer

/////////////////blackjack.py///////////////////

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote