Two tables that live in GitHub Actions, played by whoever turns up: blackjack against a dealer, and baccarat (punto banco) against a shoe. Nothing to install, and no account beyond the one you already have: every decision or bet is an issue, and both tables are this file.
Hand 12: the dealer busted with 26, @kanywst had soft 21, and it paid 1u. Pick a chip to deal hand 13.
Beat the dealer without going over 21. A click opens a prefilled issue: submit it and the table moves in about 30 seconds.
Shoe 1 · 4.8 decks left · out of it: 7 8 7 8 2 2 Q T T 5 K K 7 9 3 3 J 9 3 7 7 A 9 K · all 65
-2u over 12 hands · 1 player · 0.1u lost to mistakes
| Hand | Player | Dealer | |
|---|---|---|---|
12 @kanywst | soft 21 (3 7 A) | 26 bust (7 9 K) | +1u |
11 @kanywst | 22 bust (9 3 J) | 12 (3 9) | -25u |
10 @kanywst | 20 (T K) | 22 bust (5 K 7) | +25u |
6 decks · dealer stands on soft 17 · double after split · late surrender · blackjack pays 3 to 2 · shuffled at the 75% cut card
Pick a chip to deal a hand, then hit, stand, double, split or surrender with the buttons that appear. Each click opens an issue with the decision already written in the title — press Submit, and about 30 seconds later the table above has moved and the issue is closed with a note on what that decision was worth.
There is one table and one hand at a time, so whoever clicks next is the player. A link drawn for an earlier hand is refused rather than applied to whatever is on the table now.
- Six decks, dealt down to a cut card at 75% before the shoe is shuffled
- Every card that has come out of the shoe is listed under the table. Nothing here tells you the count; counting it is the game
- Each decision is priced from the cards actually left in the shoe, and what a mistake cost is added up per player
- Every hand is kept in .github/blackjack-log.txt
Hand 3: Player natural 9 (4 5) against Banker 2 (7 5). Player wins. @kanywst's 1u on Player paid 1u. Pick a spot and a chip to deal hand 4.
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 1 B 2 T 0 · 7.8 decks left · out of it: 7 3 5 6 7 4 K 8 6 4 7 5 5
+0.95u over 3 hands · 1 player · 0u given up to worse bets
| Hand | Bet | Player | Banker | |
|---|---|---|---|---|
3 @kanywst | 1u Player | 9 (4 5) | 2 (7 5) | +1u |
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
Each game is one script, one state file and one workflow, and the two never touch each other's files. Issue titles keep them apart: a title starting with bj| is a blackjack decision and one starting with bac| is a baccarat bet. Both workflows write README.md, so they share one queue and take turns.
| Blackjack | Baccarat | |
|---|---|---|
| Game, state and renderer | scripts/blackjack.py |
scripts/baccarat.py |
| The odds | scripts/bjmath.py |
scripts/bacmath.py |
| State | .github/blackjack.json | .github/baccarat.json |
| Workflow | .github/workflows/blackjack.yml |
.github/workflows/baccarat.yml |
| Marker in this file | BLACKJACK:START/END |
BACCARAT:START/END |
Blackjack: scripts/bjmath.py prices each decision against the shoe. The hole card is not in the repository: the state file is public, so the dealer's second card is not drawn until it is turned over. .github/workflows/calculator.yml checks the calculator against all 260 cells of the published basic-strategy chart, nightly and on any change to it.
Baccarat: 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 plays only a title in exactly the form the chips write. 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.
Both tables are drawn from one set of images in .github/cards: the deck, the empty slot, the felt padding and the chips are shared, and each game adds its own (the face-down card and buttons for blackjack, the bet spots and bead plate for baccarat). scripts/make_cards.py draws all of them, and the images are 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 both tables, redrawing each from its state file.
Blackjack moved out of the kanywst/kanywst profile README on 2026-10-02, with the shoe and the scores as they stood, and lived in 0-draft/blackjack, which was renamed to this repository. Baccarat started in 0-draft/baccarat and was merged in here on 2026-11-08 with its shoe, scores and log; the hands played there are still in that repository's issues.