Card backs: new patterns, Emacs-logo backs, and a random default

* cg-svg.el (cg-svg-card-back): default to random; add lattice/waves/diamond
and the emacs/emacs-classic/gnu/splash logo backs.  (cg-svg--back-*,
cg-svg--draw-back): draw them.  (cg-svg--card-backs, cg-svg--random-back,
cg-svg--roll-back, cg-svg-shuffle-card-back, cg-svg--effective-back): random
machinery.
* card-games.el (card-game): re-roll the random back on each menu visit.
* test/card-games-tests.el: add cgt-svg-logo-smoke, cgt-svg-card-back-smoke.
* NEWS: note the card backs and random default.
This commit is contained in:
Corwin Brust 2026-07-01 06:00:09 -05:00
parent 4b4a7fc52f
commit 9af486526d
4 changed files with 133 additions and 18 deletions

6
NEWS
View file

@ -43,6 +43,12 @@ the mouse as well as the keyboard.
~cg-svg-emacs-logo~: it embeds a real logo that ships with Emacs --
the modern icon (default), the classic icon, a GNU head, or the
splash image -- or the small built-in drawn emblem, or none.
- More card backs, and a random default. ~cg-svg-card-back~ now offers
~dots~, ~rings~, ~solid~, ~lattice~, ~waves~, ~diamond~, and four
backs stamped with an Emacs logo (~emacs~, ~emacs-classic~, ~gnu~,
~splash~). It defaults to ~random~, which picks a back for the
session; ~M-x cg-svg-shuffle-card-back~ (or reopening the game menu)
rolls a new one.
- Full SVG board for the rummy games (Gin Rummy, Rummy, Rummy 500):
the stock and discard, the melds already down on the table, and your
fanned hand with cursor, marks, and lay-off hints; click a card to