Extend the functionality of the BlackJack game created by Yaseen & Harman Include betting and more complex casino rules of blackjack.
Extending the functionality of an existing repo will give us the opportunity to expand our horizons. We will have to integrate with existing code base, and make new features which are compatible.
Blackjack:
- Dealer and Player characters Dealer Logic:
- Dealer gives out cards in specific order
- Dealer gives out:
- one card face up to player
- one card face up to Dealer
- one card face up to player
- one card face up to Dealer
- shuffle the deck
- Dealer gives out:
- Dealer plays, hitting while 16 or under (17 or more, dealer stays)
- If dealer hits and busts, player wins
Player Logic:
- if player gets Blackjack right at the start (Natural), player wins
- Repeat hit or stay until player chooses to stay:
- Player chooses to hit or stay
- if player goes over 21, player busts
Backend Game Logic:
-
Compare player total to dealer total, highest wins
-
If player wins, players get their bet back, doubled
-
Repeat until player chooses to stay:
- Player chooses to hit or stay
-
If hits and bust (go over 21), automatically loses
- Betting
- Place a bet at the beginning of the hand.
- Handle bets for additional circumstances (double down, split, etc.)
- Multiple players
- Hot Seat Multiplayer
- AI Players
- New Game Rules
- Double Down
- Split/Resplit
- Insurance
- The artifact produced is properly licensed, preferably with the MIT license.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.