Skip to contents

tibble 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()

Arguments

max_tiles

Maximum number of (piecepack) tiles available to build boards

...

Should be left empty.

seed

Seed that determines setup, either an integer or NULL

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().

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│3a2452a3
#>  └─┴─┴─┴─┴─┴─┴─┴─┘
#>   a b c d e f g h