Setups for other traditional games playable with a piecepack
Source:R/piecepack_games_traditional.R
piecepack_games_traditional.Rdtibble data frames of setups for 19 other traditional games playable with a piecepack.
Data frame output can usually be plotted with pmap_piece(df, default.units = "in").
Usage
piecepack_achi()
piecepack_alquerque(has_matchsticks = FALSE)
piecepack_awithlaknannai_mosona(has_matchsticks = FALSE)
piecepack_backgammon()
piecepack_baghchal(has_matchsticks = FALSE)
piecepack_brandubh()
piecepack_cribbage()
piecepack_cribbage_board()
piecepack_dara()
piecepack_four_field_kono()
piecepack_julgonu()
piecepack_ludo()
piecepack_nine_mens_morris(has_matchsticks = FALSE)
piecepack_salta(has_subpack = FALSE)
piecepack_seega()
piecepack_tablan()
piecepack_tablut(die_width = 0.63)
piecepack_tic_tac_toe()
piecepack_twelve_mens_morris(has_matchsticks = FALSE)
piecepack_yote()Value
A tibble::tibble() data frame with the following columns:
"piece_side"
"suit"
"rank"
"cfg" (optional, defaults to
"piecepack")"x"
"y"
"angle" (optional, defaults to
0).
This data frame is compatible with piecepackr::render_piece() and likely ppcli::cat_piece().
Details
Here are links for more information about the various other traditional games:
Examples
df <- piecepack_four_field_kono()
if (requireNamespace("ppcli", quietly = TRUE) &&
packageVersion("ppcli") >= "0.3.0-1") {
ppcli::cat_piece(df, annotate = TRUE)
}
#> ┌─┰─┬─┰─┐
#> 4│☀⃝┃☀⃝│☽⃝┃☽⃝│
#> ┝━╋━┿━╋━┥
#> 3│☀⃝┃☀⃝│☽⃝┃☽⃝│
#> ├─╂─┼─╂─┤
#> 2│⸸⃝┃⸸⃝│♛⃝┃♛⃝│
#> ┝━╋━┿━╋━┥
#> 1│⸸⃝┃⸸⃝│♛⃝┃♛⃝│
#> └─┸─┴─┸─┘
#> a b c d