Add two-player Russian Bank (Crapette) vs the computer

* cg-crapette.el: new game on cg-core — eight foundations (up by suit,
two decks), eight shared houses (down, alternating colour), per-player
reserve/waste/hand; foundation priority; loading onto the opponent; a
greedy AI; text UI with cursor pick/drop, undo, and q-to-menu.
* card-games.el: require cg-crapette and add the chooser entry.
* Makefile (EL): add cg-crapette.el.
* test/card-games-tests.el: 5 ERT (deal, legality, win, AI turn, AI foundation).
This commit is contained in:
Corwin Brust 2026-07-01 03:09:27 -05:00
parent f54d2d3213
commit 0d8901041f
5 changed files with 690 additions and 3 deletions

19
NEWS
View file

@ -10,12 +10,14 @@ the mouse as well as the keyboard.
** New games (since 1.0.60)
- Solitaire: Klondike, FreeCell, Spider, Yukon, Forty Thieves,
Scorpion, Canfield; Golf, TriPeaks, Pyramid.
Scorpion, Canfield, Russian Bank; Golf, TriPeaks, Pyramid.
- Trick-taking: Hearts, Spades, Whist, Oh Hell, Euchre, Pitch,
Briscola, and Contract Bridge (auction, dummy, rubber scoring).
- Rummy family: Gin Rummy, Rummy, Rummy 500, Hand & Foot.
- Matching: Go Fish, Old Maid.
- Shedding and climbing: Crazy Eights, President.
- Two-player: Russian Bank / Crapette, played against the computer
(foundations, shared houses, and loading cards onto your opponent).
- Pegging: Cribbage. Capturing: Scopa, Casino. Spite & Malice.
(These join Gaps/Montana, Hell's Half-Acre, and 500 from 1.0.60.)
@ -41,6 +43,21 @@ the mouse as well as the keyboard.
"Next hand" button and the hand fan.
- Live multiplayer 500 over TCP (~M-x cg-bid-host~ / ~M-x cg-bid-join~).
** Playtest fixes
- ~q~ now returns to the ~M-x card-game~ menu from any game, instead of
burying the buffer and leaving the previous buffer on screen.
- The cursor/selection ring no longer borrows the theme's ~region~
colour, which on some themes drew an alarming ring around the board;
it is now the intended gold (customize ~cg-svg-highlight-color~).
- Go Fish shows an "Ask for:" row of clickable rank buttons, so you
choose a rank to ask for without hunting for one card in a large,
overlapped hand.
- The tableau solitaires (Klondike, FreeCell, Canfield, and the rest)
and Go Fish now show a one-line control legend, so a new deal (~n~),
undo, help, and the menu are visible rather than hidden behind a key.
- Hell's Half-Acre / Gaps: clearer prompt pointing at the green ~+~
gaps to fill, and a ~q menu~ button on the control line.
* Version 1.0.60
- First multi-game release candidate: Montana/Gaps, Hell's Half-Acre,
500 (with live multiplayer). SVG rendering foundation and the