Design an online blackjack game. Players bet, get two cards, and choose to hit or stand against a dealer who follows fixed rules. Closest to 21 without going over wins.
It must
- A deck (or several) of 52 cards is shuffled into a shoe.
- Each player places a bet, then gets two cards; the dealer gets two with one hidden.
- A player can hit or stand; over 21 is a bust.
- The dealer draws until 17 or more, then results are settled against each player.
- An ace counts as 11 or 1, whichever helps without busting.
Keep in mind
- Scoring a hand with aces must always give the best legal value.
- The shoe must run out safely: reshuffle when low rather than crash.
- Money is in whole chips; real payments are out of scope.