Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am currently learning Python and my second project is to create a blackjack game using OOP principles. (Classes,objects) I need advice on how I

I am currently learning Python and my second project is to create a blackjack game using OOP principles. (Classes,objects)

I need advice on how I can separate the game into classes. I'm not asking for code, I'm just asking on advice picking classes for the structure of the game. Are there any resources for coming up with class structure for a game?

My current thinking is that I should have classes for:

DECK, CARD, HAND, CHIPS, DEALER, PLAYER

Am I on the right track? Any advice for taking a problem and coming up with classes for it? Is there such a thing as too many classes or too few classes?

Here are the requirements:

  • You need to create a simple text-based BlackJack game
  • The game needs to have one player versus an automated dealer.
  • The player can stand or hit.
  • The player must be able to pick their betting amount.
  • You need to keep track of the player's total money.
  • You need to alert the player of wins, losses, or busts, etc...

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

Case Studies In Business Data Bases

Authors: James Bradley

1st Edition

0030141346, 978-0030141348

More Books

Students also viewed these Databases questions