Blackjack is a casino banking game, using (usually) multiple decks of 52 cards. Player do not compete against each other. The game is a comparing card game where each player competes against the dealer.
To start each round, players place bets in the "betting box" at each position. The dealer deals from top (first base
) to bottom (third base
). Each player hand gets an initial hand of two cards visible to the people playing on it. The dealer's hand gets its first card face up and their second card face down (the hole card), which the dealer peeks at but only reveals when it makes the dealer's hand a blackjack.
The object of the game is to win money by creating card totals higher than those of the dealer's hand but not exceeding 21, or by stopping at a total in the hope that dealer will bust. On their turn, players choose to hit, stand, double, split, or surrender. Number cards count as their number, the jack, queen, and king count as 10, and aces count as either 1 or 11 according to the player's choice. If the total exceeds 21 points, it busts, and all bets on it immediately lose.
If Aces are split, each hand split this way gets exactly one additional card (for 2 total), and then those hands are over.
After the player hands have finished, the dealer's hand is resolved by drawing cards (hitting) until the hand achieves a total of 17 or higher. If the dealer busts, all remaining player hands win. If the dealer does not bust, each remaining player hand wins if its hand is higher than the dealer's and loses if it is lower.
A player total of 21 on the first two cards is a blackjack
, and the player wins immediately unless dealer also has one, in which case the hand ties. In the case of a tie (push
), bets are returned without adjustment. A blackjack beats any hand that is not a blackjack, even one with a value of 21.
If the dealer shows an ace, an insurance
bet is allowed. Insurance is a side bet that the dealer has a blackjack. The dealer asks for insurance bets before the first player plays. Insurance bets of half the player's current bet are placed on the "insurance bar" above player's cards. If the dealer has a blackjack, insurance pays 2 to 1. Players with blackjack can also take insurance.
This project keeps track of both money score (how much cash the player has on hand) and casual score (total amount of money won in a single "credit"). The minimum bet increases as casual score increases. If the money score is exhausted, a fresh batch can always be acquired, but doing so will reset the casual score.
Also, this project has a daily mutation
system, repeated weekly. The table below indicates how the mechanics are laid down each week:
Sun | Mon | Tue | Wed | Thu | Fri | Sat | |
---|---|---|---|---|---|---|---|
Decks | 6 | 4 | 6 | 4 | 6 | 4 | 6 |
Dealer 17s | H17 | S17 | H17 | S17 | S17 | H17 | S17 |
Surrenders | ✖ | ✔ | ✔ | ✖ | ✔ | ✔ | ✖ |