Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need a program in Python 3 that creates a black jack game. I have attached what the ouput should look like. Here are the

image text in transcribed

I need a program in Python 3 that creates a black jack game. I have attached what the ouput should look like. Here are the specifications:

Use a standard 52-card deck of playing cards.

The dealer must continue taking cards until the dealer has at least 17 points.

Dont allow a player to split a hand or double down.

Use a Card class that provides attributes for storing the rank, suit, and points for a card. This class should also provide a method that returns a string that includes the rank and suit of the card.

Use a Deck class that provides for a standard 52-card playing deck. This class should include methods that allow you to shuffle the deck and to deal cards from it.

Use a Hand class to store the dealers hand and the players hand. This class should include methods that allow you to add a card, get a card, count the number of cards, and get the total points for a hand of Blackjack.

BLACKJACK! Blackjack payout is 3:2 Start time: 11:43:03 AM Money: $110.00 Bet amount: 10 DEALER'S SHOW CARD: 6 of Clubs YOUR CARDS: 9 of Clubs Jack of Clubs Hit or stand? (hit/stand) stand DEALER'S CARDS: 6 of Clubs Queen of Hearts Queen of Diamonds 19 YOUR POINTS: DEALER'S POINTS: 26 Yay! The dealer busted. You win! Money: $120.00 Play again? (y): n Stop time: 11:43:20 AM Elapsed time: 00:00:16 Come back soon Bye

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Secrets Of Analytical Leaders Insights From Information Insiders

Authors: Wayne Eckerson

1st Edition

1935504347, 9781935504344

More Books

Students also viewed these Databases questions

Question

Know how productivity improvements impact quality and value.

Answered: 1 week ago