A refactoring and revision of an early exercise:
Create a game of Blackjack that one person plays on the command line against a computer dealer, with the following rules:
The only valid moves are hit and stand. Allow the player to play as many turns as they want. The dealer will stand at 17 (soft or hard) The dealer uses one deck and reshuffles after each round. The game should start the player with $100 and bets are $10. A player's turn is over when they are out of money
For my portfolio and contact information, please visit me: Will Warren
- how to track state by using objects
- how to design classes to collaborate and communicate
- build an interactive game
- fundamentals of Object Oriented Programing
- Install python3
- run via CLI "$ python3 play_blackjack.py"
- Enter your name, follow the instructions, and play blackjack!
- blackjack.py
- set of classes that govern game play.
- Card, Deck, BlackjackHand, Game, Player, Dealer(Player), HumanPlayer(Player)
- play_blackjack.py
- UI/game play file.
- README.md
- This File
- Betting seems a bit wonky at times. Need pot to carry on through a session of games, instead of one game as it is now.