Trick games: full SVG table (opponents, trick, fanned hand)
* cg-trick.el (cg-trick--svg, cg-trick--draw-backs): draw the whole table as one SVG -- three opponents, the trick in a diamond, the South hand fanned with cursor, legal-play hints, and pass marks; hand cards carry (hand . INDEX) click regions. (cg-trick--render-text): the text fallback. (cg-render): dispatch SVG on a graphical display, else text. Add a footer legend; refresh the help. Covers Hearts, Spades, Whist, Oh Hell, and the Euchre/Pitch/Briscola subclasses. * test/card-games-tests.el: add cgt-trick-svg-smoke, cgt-trick-svg-bidding. * NEWS: note the trick-taking SVG table.
This commit is contained in:
parent
400e5830be
commit
98b297d149
18 changed files with 941 additions and 14 deletions
|
|
@ -651,6 +651,7 @@ progress must be played out (unlike the solitaire games)."
|
|||
(define-key map [mouse-5] #'cg-bid-wheel)
|
||||
(define-key map "v" #'cg-bid-toggle-svg-ui)
|
||||
(define-key map [mouse-1] #'cg-bid-mouse)
|
||||
(define-key map "q" #'cg-quit-to-menu)
|
||||
map)
|
||||
"Keymap for `cg-bid-mode' (Emacs style; see `cg-keys').")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue