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:
parent
4b4a7fc52f
commit
9af486526d
4 changed files with 133 additions and 18 deletions
|
|
@ -159,6 +159,9 @@ Each entry is (NAME COMMAND DESCRIPTION); `card-game' lists them.")
|
|||
"Open a chooser listing the available card games.
|
||||
Press RET (or click) on a game to start it."
|
||||
(interactive)
|
||||
(when (and (boundp 'cg-svg-card-back) (eq cg-svg-card-back 'random)
|
||||
(fboundp 'cg-svg--roll-back))
|
||||
(cg-svg--roll-back)) ; a fresh random back per menu visit
|
||||
(let ((buf (get-buffer-create "*Card Games*")))
|
||||
(with-current-buffer buf
|
||||
(card-game-mode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue