generated from mwc/project_game
I need some help organizing my functions, methods and classes. I have a card class that returns a card value I have a dealer file that has a function that deals the first two cards I'm still a little lost on how this works into the Game class and how to organize the play. I want to: 1. deal two cards to each dealer and player 2. hide one of the dealers cards 3. present the user with their cards and let them choose * hit me OR * stay. 4. If they hit, deal another card to them and calculate if they went over 21. If they went over 21 end the game with BUST Dealer WINS!. If they didn't go over 21, calculate their score and allow the dealer their turn. 5. If they stay, calculate their score and let the dealer have their turn. 6. Dealer - checks their cards and compares them to the player. Then chooses to hit or stay. Print choice to screen. If they hit, show the card to the player.
3 lines
105 B
Python
3 lines
105 B
Python
import retro
|
|
#code will be used to deal out cards for each player playing depending on the game played.
|