-
Notifications
You must be signed in to change notification settings - Fork 0
Blackjack flow
As soon as one player sits down (T(first_player_start_hand_delay) delay to allow other players?), dealer starts. New players can sit down, but they will only be dealt cards after this hand.
Wait for bets, T(bets). Player can stand up during this time.
Dealer deals cards, two face up to player(s), one face down and one face up to dealer.
Dealer checks for 21. If 21, hand ends.
In player order, wait for action: hit, stand, double down, split, fold (stand up?). Keep looping until player stands, busts after a hit, or folds (on all hands if one or more splits). Note if player busts or folds; they no longer matter for final score.
After all players, deal to dealer. Action continues based on dealer's current hand, until it stands or busts.
Determine winners, . Hand ends.
Hand end: new round starts after T(minimum_interhand_delay). Player can stand up with no penalty.
Times:
minimum_interhand_delay: After a game ends, dealer will wait this number of seconds before starting the new hand, assuming there is at least one player at the end of the interval. Stop this timer as soon as the last person leaves.
first_player_start_hand_delay: If there is currently no one at the table, when the first person sits down, wait this number of seconds before starting the game, to allow more players to join. Stop the timer if everyone leaves.
bets: time to wait for people to enter bets. Does this change/is this affected by first_player_start_hand_delay?