Question
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
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