Team: Alex Acuna, Anthony J. Aruldoss, Daniel Monyei
- DEALER VS. PLAYER
- REGULAR HIT, STAY, BUST, AND PUSH Options
- Text Based
- Get the code from our branch labeled
Code - Run the program in an your software or IDE
- Follow instructions given in program
- Remember 'hit' or 'stay' are the input options
- Enjoy
- Dealer must STAY on all 17's
- When player has 5 cards in hand and value less than or equal to 21, player wins.
Go To Pages Branch >> README.md To View in plain text << https://github.com/aaruldoss/ProjectBlackJack/tree/Code >>
Go To Code Branch >> ProjectBlackjack(Charlie).py To View the Code
Team: Alex Acuna, Anthony J. Aruldoss, Daniel Monyei
- Approach/Ideology
- Steps To Functionality
- Challenges
Components:
- Dictionaries
- Lists
- Global and local variables
- If/elif/else statements
- While loops
- Print/Prompt/Input statements
Key Tasks:
- Establishing iSchool Rules
- A dictionary used to simulate a deck of cards
- Draw function using random.choice()
- Summing number of cards in hand/drawed and total card value
- HIT or STAY
- Simulating up to 5 player draws
- PUSH (Ties; Dealer Card Value == Player Card Value)
- BUST (card value > 21)
- Aces ( == 11 versus == 1)
- Dealer vs. Player Variables
- Do you want to play (Yes/No?)
- random.choice() player 2 cards
- State keys (cards in hand) and value
- HIT/STAY?
- If hit, random.choice() another card
- State keys and value
- If Ace choose 1 or 11
- HIT (instance 1, 2, 3, 4, and/or 5)
- WIN? LOST? BUST? PUSH
- Aces to be valued at 1 or 11?
- Dealing with invalid user inputs
- Ties
- First hand == 21
- Class Storage Name as player & Dealer
- Creating Rules (Computer Logic vs Human Logic)
- User Friendliness