{pprules}
is an R package with functions that help generate custom piecepack rulesets and books.save_ruleset()
supports saving rulesets in a variety of file formats viapandoc
whilesave_pamphlet()
supports saving rulesets in a compact tri-fold pamphlet format.save_rulebook()
supports saving a rulebook. Currently only supports "The Historical Piecepacker".- This is an extraction and refinement of functionality originally contained in the experimental {ppgames} package.
To install the {pprules}
R package use the following commands in
R:
install.packages("remotes")
remotes::install_github("piecepackr/pprules")
If you want to make rulebooks you'll need xelatex
and if you want to
make rulesets you'll need a recent version of pandoc
. The following
instructions should work on Ubuntu:
sudo apt install texlive-xetex
sudo apt install cabal-install
cabal update # add $HOME/.cabal/bin to $PATH
cabal install pandoc
library("pprules")
gk <- game_kit()
save_pamphlet("tablut", gk=gk)
save_ruleset("nine-mens-morris", gk=gk)
save_rulebook("the-historical-piecepacker", gk=gk)
Unless otherwise specified the rulesets and rulebooks in the
inst
directory are licensed under the CC BY-SA 4.0
license. The code in
the R
, man
, and tests
directories are dual-licensed under
the MIT license.
- alquerque
- american checkers
- awithlaknannai mosona
- backgammon
- chaturaji
- cribbage
- four field kono
- international chess
- ludo
- nine men's morris
- pass the food
- shogi
- speedy towers
- tablut
- twelve men's morris
- xiangqi
- piecepack.net
- Piecepack wiki
- pre-generated {pprules}' Rulesets