Skip to contents

tibble data frames of setups for 5 chess variants. Data frame output can usually be plotted with pmap_piece(df, default.units = "in").

Usage

chess_chess(cell_width = getOption("ppdf.chess_cell_width", 1))

chess_chess960(seed = NULL, cell_width = getOption("ppdf.chess_cell_width", 1))

chess_fischer_random_chess(
  seed = NULL,
  cell_width = getOption("ppdf.chess_cell_width", 1)
)

chess_horde_chess(..., cell_width = getOption("ppdf.chess_cell_width", 1))

chess_international_chess(cell_width = getOption("ppdf.chess_cell_width", 1))

chess_monochrome_chess(cell_width = getOption("ppdf.chess_cell_width", 1))

chess_racing_kings(cell_width = getOption("ppdf.chess_cell_width", 1))

Arguments

cell_width

Width of board cell. Most renderers support 1 or 2.

seed

Seed that determines setup, either an integer or NULL

...

Should be left empty.

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 games:

GameURL
(International) Chesshttps://en.wikipedia.org/wiki/Chess
Fischer Random Chess AKA Chess960https://www.chessvariants.com/diffsetup.dir/fischer.html
Horde Chesshttps://lichess.org/variant/horde
Monochrome Chesshttps://wunderland.com/WTS/Andy/Games/monochess.html
Racing Kingshttps://www.chessvariants.com/diffobjective.dir/racing.html