Warning
Merged into 0-draft/casino on 2026-11-08, archived on 2026-11-08. Blackjack and baccarat were the same kind of game drawn from the same card art, so they now share one repository. The table carries on with its shoe, scores and log at 0-draft/casino#baccarat; the game workflow here is disabled, so the table below is frozen and its chips no longer deal.
Punto banco against a shoe that lives in GitHub Actions, played by whoever turns up. Nothing to install, and no account beyond the one you already have: every bet is an issue, and the table is this file.
Hand 2: Player 7 (7 K) against Banker 8 (4 8 6). Banker wins. @kanywst's 1u on Player lost 1u. Pick a spot and a chip to deal hand 3.
Bet on the hand that comes closest to 9. A chip opens a prefilled issue: submit it and the cards come out in about 30 seconds.
Shoe 1 · P 0 B 2 T 0 · 7.8 decks left · out of it: 7 3 5 6 7 4 K 8 6
-0.05u over 2 hands · 1 player · 0u given up to worse bets
| Hand | Bet | Player | Banker | |
|---|---|---|---|---|
2 @kanywst | 1u Player | 7 (7 K) | 8 (4 8 6) | -1u |
1 @kanywst | 1u Banker | 2 (7 5) | 9 (3 6) | +0.95u |
Punto banco · 8 decks · banker pays 0.95 to 1 · tie pays 8 to 1 and pushes the player and banker bets · pairs pay 11 to 1 · shuffled at the cut card, 16 cards from the end
Pick a spot (Player, Banker, Tie, or either pair) and click a chip in its row. The click opens an issue with the bet already written in the title. Press Submit, and about 30 seconds later the coup has been dealt by the standard tableau, the table above has moved, and the issue is closed with the result and a note on what that bet was worth.
Nothing is decided once the chip is down, so one click is one whole hand. There is one table and one hand at a time: a link drawn for an earlier hand is refused rather than played against a shoe the clicker never saw.
- Eight decks, dealt down to a cut card 16 cards from the end before the shoe is shuffled
- Every card that has come out of the shoe is listed under the table, and the bead plate shows every result of the shoe so far
- Each bet is priced exactly from the cards actually left in the shoe. The issue comes back with the value of all five spots, and what choosing a worse one gave up is added up per player
- Late in a shoe a tie or a pair bet sometimes has the edge over the house. The comment says so when it happened
- Every hand of the last 40 shoes, with each shoe's cards and road, is kept in .github/baccarat-log.txt
scripts/baccarat.py is the game: the state in .github/baccarat.json, the settlement, and the renderer that writes the table between the two markers above. scripts/bacmath.py is the drawing rules and the exact odds of every bet, summed over every way the next four to six cards can come out. On a full eight-deck shoe it reproduces the published house edges: 1.06% on Banker, 1.24% on Player, 14.36% on Tie at 8 to 1. .github/workflows/baccarat.yml runs the game whenever an issue is opened whose title is a bet in exactly the form the chips write, then commits the redrawn README and closes the issue. Any other title starting with bac| is closed without being played, and so is a bet from an account that has opened more than six issues in the last three minutes, so that nobody can fill the queue and hold the table.
The cards in .github/cards are drawn by scripts/make_cards.py and committed rather than generated on each hand, so .github/workflows/checks.yml regenerates them on every pull request and fails if the committed art no longer matches its generator. It does the same for the table, redrawing it from the state file.