Trevor L. Davis
Trevor L. Davis
9b46932 adds simple face/joker card graphics in the center of the card using this package's built-in meeple shape
Could theoretically use API (with shiny?) to generate game diagrams and actually play some piecepack games in a browser?
There is also the ``plumber`` package for creating a Web API: https://github.com/trestletech/plumber https://rviews.rstudio.com/2018/11/27/slack-and-plumber-part-two/
For generating custom piecepack could have editable YAML field which shiny then automatically updates a preview. Then have button to generate downloadable print-and-play pdf and/or pp_cfg object.
For ppn games could have editable PPN field which automatically updates animation and last game state.
Some possible "tabs" in a theoretical piecepack app: * main design (preview) * pick fonts * pick colors * export + R code + yaml + print-and-play pdf
Options to suppress generating the "backs" of "matchsticks", "dominoes", and/or "cards".
Right now supports ``single-sided`` and ``double-sided``. Other options might be a pain to write (and maintain).
Implementing #75 would be the main pre-requisite for someone to use piecepackr to make a custom megahexpack PnP layout. (i.e. after #75 is implemented they could use ``draw_component("tile_face", cfg=list("tile.shape"="megahex"), ...,...
Oh, if a one inch diameter circle fits within a subhex that would guarantee that any legal piecepack coin (from a piecepack with 2" tiles) would fit within a subhex...