Setups for games playable with a piecepack stackpack
Source:R/stackpack_games.R
stackpack_games_other.Rdtibble data frames of setups for 10 other games playable with a piecepack stackpack.
Data frame output can usually be plotted with pmap_piece(df, default.units = "in").
Usage
stackpack_alice_chess(max_tiles = 24L)
stackpack_baroque_chess()
stackpack_chaturaji()
stackpack_chess()
stackpack_chess960(..., seed = NULL)
stackpack_fischer_random_chess(..., seed = NULL)
stackpack_chinese_chess()
stackpack_four_seasons_chess()
stackpack_horde_chess()
stackpack_international_chess()
stackpack_japanese_chess()
stackpack_salta()
stackpack_shogi()
stackpack_ultima()
stackpack_xiangqi()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 games:
| Game | URL |
| Alice Chess | https://en.wikipedia.org/wiki/Alice_chess |
| Chaturaji | https://www.ludism.org/ppwiki/Chaturaji |
| Fischer Random Chess AKA Chess960 | https://www.chessvariants.com/diffsetup.dir/fischer.html |
| Four Seasons Chess | https://www.chessvariants.com/historic.dir/4seiz.html |
| Horde Chess | https://lichess.org/variant/horde |
| (International) Chess | https://www.ludism.org/ppwiki/Chess |
| Salta | https://en.wikipedia.org/wiki/Salta_(game) |
| Shogi aka Japanese Chess | https://www.ludism.org/ppwiki/Shogi |
| Ultima aka Baroque Chess | https://en.wikipedia.org/wiki/Baroque_chess |
| Xiangqi AKA Chinese Chess | https://www.ludism.org/ppwiki/Xiangqi |
Examples
df <- stackpack_chess()
if (requireNamespace("ppcli", quietly = TRUE) &&
packageVersion("ppcli") >= "0.3.0-1") {
ppcli::cat_piece(df, annotate = TRUE)
}
#> ┌─┬─┬─┬─┬─┬─┬─┬─┐
#> 8│↋│ɐ│↊│ᔭ│ↅ̲│↊│ɐ│↋│
#> ├─╁─┼─╁─┼─╁─┼─╁─┤
#> 7│☀⃝┃☀⃝│☀⃝┃☀⃝│☽⃝┃☽⃝│☽⃝┃☽⃝│
#> ├─╂─┼─╂─┼─╂─┼─╂─┤
#> 6│ ┃ │ ┃ │ ┃ │ ┃ │
#> ┝━╋━┿━╋━┿━╋━┿━╋━┥
#> 5│ ┃ │ ┃ │ ┃ │ ┃ │
#> ├─╂─┼─╂─┼─╂─┼─╂─┤
#> 4│ ┃ │ ┃ │ ┃ │ ┃ │
#> ┝━╋━┿━╋━┿━╋━┿━╋━┥
#> 3│ ┃ │ ┃ │ ┃ │ ┃ │
#> ├─╂─┼─╂─┼─╂─┼─╂─┤
#> 2│⸸⃝┃⸸⃝│⸸⃝┃⸸⃝│♛⃝┃♛⃝│♛⃝┃♛⃝│
#> ├─╀─┼─╀─┼─╀─┼─╀─┤
#> 1│3│a│2│4│5│2│a│3│
#> └─┴─┴─┴─┴─┴─┴─┴─┘
#> a b c d e f g h