Title: | Board Game Setups |
---|---|
Description: | Generate 'tibble' data frames indicating how to set up over a hundred board games playable with public domain game systems. Data format can be used by 'piecepackr' to generate graphics with the 'grid', 'ggplot2', 'rayrender', 'rayvertex', and 'rgl' graphics systems and by 'ppcli' to generate plaintext graphics with 'cli'. |
Authors: | Trevor L. Davis [aut, cre] |
Maintainer: | Trevor L. Davis <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.2.0-8 |
Built: | 2025-03-13 18:25:32 UTC |
Source: | https://github.com/piecepackr/ppdf |
tibble
data frames of setups for 2 alquerque variants.
Data frame output can usually be plotted with pmap_piece(df, default.units = "in")
.
alquerque_alquerque() alquerque_baghchal()
alquerque_alquerque() alquerque_baghchal()
Here are links for more information about the various games:
Game | URL |
Alquerque | https://en.wikipedia.org/wiki/Alquerque |
Bagh-chal | https://en.wikipedia.org/wiki/Bagh-chal |
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()
.
df <- alquerque_alquerque() if (requireNamespace("ppcli", quietly = TRUE) && packageVersion("ppcli") >= "0.2.0-1") { ppcli::cat_piece(df) }
df <- alquerque_alquerque() if (requireNamespace("ppcli", quietly = TRUE) && packageVersion("ppcli") >= "0.2.0-1") { ppcli::cat_piece(df) }
alquerque_board()
returns an alquerque board.
alquerque_bits()
returns alquerque pieces.
alquerque_board(x0 = 1, y0 = 1, ..., suit = 3L) alquerque_bits( ..., suit = 1:6, x = as.double(1:6), y = 1, angle = 0, length.out = NA_integer_ )
alquerque_board(x0 = 1, y0 = 1, ..., suit = 3L) alquerque_bits( ..., suit = 1:6, x = as.double(1:6), y = 1, angle = 0, length.out = NA_integer_ )
x0 |
X coordinate for the center of the first point |
y0 |
Y coordinate for the center of the first point |
... |
Should be left empty. |
suit |
Suit value (color) of board.
|
x , y
|
Cartesian coordinates (numeric vectors) |
angle |
Rotation of piece (numeric vector of degrees, counter-clockwise) |
length.out |
The number of pieces. Not needed if all the arguments are the same length (or of length one) and this length is the same as the number of desired pieces. |
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()
.
tibble
data frames of setups for 8 other games playable with a checkers set.
Data frame output can usually be plotted with pmap_piece(df, default.units = "in")
.
checkers_breakthrough(cell_width = 1) checkers_crossings(cell_width = 1) checkers_dao(cell_width = 1) checkers_focus(cell_width = 1) checkers_four_field_kono(cell_width = 1) checkers_grasshopper(cell_width = 1) checkers_julgonu(cell_width = 1) checkers_lines_of_action(cell_width = 1)
checkers_breakthrough(cell_width = 1) checkers_crossings(cell_width = 1) checkers_dao(cell_width = 1) checkers_focus(cell_width = 1) checkers_four_field_kono(cell_width = 1) checkers_grasshopper(cell_width = 1) checkers_julgonu(cell_width = 1) checkers_lines_of_action(cell_width = 1)
cell_width |
Width of board cell. Most renderers support |
Here are links for more information about the various games:
Game | URL |
Breakthrough | https://en.wikipedia.org/wiki/Breakthrough_(board_game) |
Crossings | https://en.wikipedia.org/wiki/Crossings_(game) |
Dao | https://boardgamegeek.com/boardgame/948/dao |
Focus | https://en.wikipedia.org/wiki/Focus_(board_game) |
Four Field Kono | https://en.wikipedia.org/wiki/Four_Field_Kono |
Grasshopper | http://www.cyningstan.com/game/71/grasshopper |
Jul-Gonu | https://en.wikipedia.org/wiki/Jul-Gonu |
Lines of Action | https://en.wikipedia.org/wiki/Lines_of_Action |
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()
.
tibble
data frames of setups for 16 checkers variants.
Data frame output can usually be plotted with pmap_piece(df, default.units = "in")
.
checkers_american_checkers(cell_width = 1) checkers_american_pool_checkers(cell_width = 1) checkers_brazilian_checkers(cell_width = 1) checkers_canadian_checkers(cell_width = 1) checkers_checkers(cell_width = 1) checkers_czech_checkers(cell_width = 1) checkers_dameo(cell_width = 1) checkers_english_checkers(cell_width = 1) checkers_frisian_checkers(cell_width = 1) checkers_gothic_checkers(cell_width = 1) checkers_international_checkers(cell_width = 1) checkers_italian_checkers(cell_width = 1) checkers_jamaican_checkers(cell_width = 1) checkers_portuguese_checkers(cell_width = 1) checkers_russian_checkers(cell_width = 1) checkers_spanish_checkers(cell_width = 1) checkers_thai_checkers(cell_width = 1) checkers_turkish_checkers(cell_width = 1)
checkers_american_checkers(cell_width = 1) checkers_american_pool_checkers(cell_width = 1) checkers_brazilian_checkers(cell_width = 1) checkers_canadian_checkers(cell_width = 1) checkers_checkers(cell_width = 1) checkers_czech_checkers(cell_width = 1) checkers_dameo(cell_width = 1) checkers_english_checkers(cell_width = 1) checkers_frisian_checkers(cell_width = 1) checkers_gothic_checkers(cell_width = 1) checkers_international_checkers(cell_width = 1) checkers_italian_checkers(cell_width = 1) checkers_jamaican_checkers(cell_width = 1) checkers_portuguese_checkers(cell_width = 1) checkers_russian_checkers(cell_width = 1) checkers_spanish_checkers(cell_width = 1) checkers_thai_checkers(cell_width = 1) checkers_turkish_checkers(cell_width = 1)
cell_width |
Width of board cell. Most renderers support |
Here are links for more information about the various games:
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()
.
checkers_board()
returns a square checkers board of desired size and type.
checkers_bits()
returns checkers discs.
checkers_board( nrows = 8L, ncols = nrows, x0 = 1, y0 = 1, ..., side = "face", piece_side = paste0("board_", side), suit = 3L, angle = 0, cell_width = 1 ) checkers_bits( ..., suit = 1:6, x = as.double(1:6), y = 1, angle = 0, cell_width = 1, length.out = NA_integer_ )
checkers_board( nrows = 8L, ncols = nrows, x0 = 1, y0 = 1, ..., side = "face", piece_side = paste0("board_", side), suit = 3L, angle = 0, cell_width = 1 ) checkers_bits( ..., suit = 1:6, x = as.double(1:6), y = 1, angle = 0, cell_width = 1, length.out = NA_integer_ )
nrows |
Number of rows in game board |
ncols |
Number of columns in game board |
x0 |
X coordinate for the center of the first cell |
y0 |
Y coordinate for the center of the first cell |
... |
Should be left empty. |
side |
Either "face" or "back" |
piece_side |
If |
suit |
Suit value (color) of board.
|
angle |
Angle of board in degrees. Italian Checkers rotates its board 90 degrees compared to other checkers variants. |
cell_width |
Width of board cell.
|
x , y
|
Cartesian coordinates (numeric vectors) |
length.out |
The number of pieces. Not needed if all the arguments are the same length (or of length one) and this length is the same as the number of desired pieces. |
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()
.
tibble
data frames of setups for 5 chess variants.
Data frame output can usually be plotted with pmap_piece(df, default.units = "in")
.
chess_chess(cell_width = 1) chess_chess960(seed = NULL, cell_width = 1) chess_fischer_random_chess(seed = NULL, cell_width = 1) chess_horde_chess(..., cell_width = 1) chess_international_chess(cell_width = 1) chess_monochrome_chess(cell_width = 1) chess_racing_kings(cell_width = 1)
chess_chess(cell_width = 1) chess_chess960(seed = NULL, cell_width = 1) chess_fischer_random_chess(seed = NULL, cell_width = 1) chess_horde_chess(..., cell_width = 1) chess_international_chess(cell_width = 1) chess_monochrome_chess(cell_width = 1) chess_racing_kings(cell_width = 1)
cell_width |
Width of board cell. Most renderers support |
seed |
Seed that determines setup, either an integer or |
... |
Should be left empty. |
Here are links for more information about the various games:
Game | URL |
(International) Chess | https://en.wikipedia.org/wiki/Chess |
Fischer Random Chess AKA Chess960 | https://www.chessvariants.com/diffsetup.dir/fischer.html |
Horde Chess | https://lichess.org/variant/horde |
Monochrome Chess | https://wunderland.com/WTS/Andy/Games/monochess.html |
Racing Kings | https://www.chessvariants.com/diffobjective.dir/racing.html |
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()
.
chess_board()
returns a square checkered board of desired size and type.
chess_bits()
returns chess pieces.
chess_board( nrows = 8L, ncols = nrows, x0 = 1, y0 = 1, ..., side = "face", piece_side = paste0("board_", side), suit = 3L, angle = 0, cell_width = 1 ) chess_bits( ..., suit = rep(1:6, each = 6L), rank = rep(1:6, 6L), x = rep(1:6, 6L), y = rep(1:6, each = 6L), angle = 0, cell_width = 1, length.out = NA_integer_ )
chess_board( nrows = 8L, ncols = nrows, x0 = 1, y0 = 1, ..., side = "face", piece_side = paste0("board_", side), suit = 3L, angle = 0, cell_width = 1 ) chess_bits( ..., suit = rep(1:6, each = 6L), rank = rep(1:6, 6L), x = rep(1:6, 6L), y = rep(1:6, each = 6L), angle = 0, cell_width = 1, length.out = NA_integer_ )
nrows |
Number of rows in game board |
ncols |
Number of columns in game board |
x0 |
X coordinate for the center of the first cell |
y0 |
Y coordinate for the center of the first cell |
... |
Should be left empty. |
side |
Either "face" or "back" |
piece_side |
If |
suit |
Suit value (color) of board. |
angle |
Angle of board in degrees. Italian Checkers rotates its board 90 degrees compared to other checkers variants. |
cell_width |
Width of board cell.
|
rank |
Integer vector with values between |
x , y
|
Cartesian coordinates (numeric vectors) |
length.out |
The number of pieces. Not needed if all the arguments are the same length (or of length one) and this length is the same as the number of desired pieces. |
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()
.
tibble
data frames of setups for 7 dominoes variants.
Data frame output can usually be plotted with pmap_piece(df, default.units = "in")
.
domino_concentration(seed = NULL) domino_finder(seed = NULL) domino_runners(seed = NULL) domino_fujisan(seed = NULL) domino_luzon(seed = NULL) domino_patience(seed = NULL) domino_the_jubilee(seed = NULL)
domino_concentration(seed = NULL) domino_finder(seed = NULL) domino_runners(seed = NULL) domino_fujisan(seed = NULL) domino_luzon(seed = NULL) domino_patience(seed = NULL) domino_the_jubilee(seed = NULL)
seed |
Seed that determines setup, either an integer or |
Here are links for more information about the various games:
Game | URL |
Concentration | http://www.domino-play.com/Games/Concentration.htm |
Domino Finder | https://donkirkby.github.io/donimoes/rules.html#domino-finder |
Domino Runners | https://donkirkby.github.io/donimoes/rules.html#domino-runners |
(Domino) Fuji-san | http://donkirkby.github.io/donimoes/rules.html#fujisan |
Luzon | http://www.domino-play.com/Games/Luzon.htm |
(Domino) Patience | http://www.domino-play.com/Games/Patience.htm |
The Jubilee | http://www.domino-play.com/Games/Jubilee.htm |
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()
.
domino_tiles()
generates a data frame of dominoes tiles.
By default will generate all the dominoes tiles of a double-6 set.
domino_tiles( n = 7, ..., side = "face", piece_side = paste0("tile_", side), suit = sequence(n:1, from = 1:n), rank = rep.int(1:n, n:1), cfg = "dominoes", x = sequence(n:1, from = 1:n), y = 2 * rep.int(n:1, n:1) - 0.5, angle = 0 )
domino_tiles( n = 7, ..., side = "face", piece_side = paste0("tile_", side), suit = sequence(n:1, from = 1:n), rank = rep.int(1:n, n:1), cfg = "dominoes", x = sequence(n:1, from = 1:n), y = 2 * rep.int(n:1, n:1) - 0.5, angle = 0 )
n |
The number of doubles in a set e.g. |
... |
Should be left empty. |
side |
Either "face" or "back". |
piece_side |
Either "tile_face" or "tile_back". |
suit |
"Bottom" half of domino. |
rank |
"Top" half of domino. |
cfg |
"dominoes" or perhaps "dominoes_black", "dominoes_blue", "dominoes_green", "dominoes_red", "dominoes_white", or "dominoes_yellow". |
x , y
|
Cartesian coordinates (numeric vectors) |
angle |
Rotation of dominoes (numeric vector of degrees, counter-clockwise) |
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()
.
df_double6 <- domino_tiles() nrow(df_double6) df_double9 <- domino_tiles(n = 10) nrow(df_double9) df_double12 <- domino_tiles(n = 13) nrow(df_double12) df_double15 <- domino_tiles(n = 16) nrow(df_double15)
df_double6 <- domino_tiles() nrow(df_double6) df_double9 <- domino_tiles(n = 10) nrow(df_double9) df_double12 <- domino_tiles(n = 13) nrow(df_double12) df_double15 <- domino_tiles(n = 16) nrow(df_double15)
chess_games()
, domino_games()
, checkers_games()
, piecepack_games()
, and stackpack_games()
contain information about the games
whose setups are provided by this package.
alquerque_games() chess_games() checkers_games() domino_games() piecepack_games() stackpack_games()
alquerque_games() chess_games() checkers_games() domino_games() piecepack_games() stackpack_games()
A tibble::tibble()
data frame with character columns "game", "methods", "comment", and "url"
for game name, setup function name(s), possible comment, and url for more information.
head(piecepack_games()) # Number of games for each game system nrow(alquerque_games()) nrow(chess_games()) nrow(checkers_games()) nrow(domino_games()) nrow(piecepack_games()) nrow(stackpack_games())
head(piecepack_games()) # Number of games for each game system nrow(alquerque_games()) nrow(chess_games()) nrow(checkers_games()) nrow(domino_games()) nrow(piecepack_games()) nrow(stackpack_games())
marble_board()
returns a square holed board of desired size and color.
marble_bits()
returns marble pieces.
marble_board( nrows = 4L, ncols = nrows, x0 = 1 * scale_factor, y0 = 1 * scale_factor, ..., suit = 4L, scale_factor = 0.5 ) marble_bits( ..., suit = 1:6, rank = 9L, x = as.double(1:6), y = 1, angle = 0, length.out = NA_integer_ )
marble_board( nrows = 4L, ncols = nrows, x0 = 1 * scale_factor, y0 = 1 * scale_factor, ..., suit = 4L, scale_factor = 0.5 ) marble_bits( ..., suit = 1:6, rank = 9L, x = as.double(1:6), y = 1, angle = 0, length.out = NA_integer_ )
nrows |
Number of rows in game board (i.e. number of holes vertically) |
ncols |
Number of columns in game board (i.e. number of holes horizontally) |
x0 |
X coordinate for the center of the first hole |
y0 |
Y coordinate for the center of the first hole |
... |
Should be left empty. |
suit |
Suit value (color) of board.
|
scale_factor |
Used by |
rank |
Determines the size of the marble from 0.5 inch diameter (rank 1) to 1.0 inch diamter (rank 9). The default is 1.0 inch diameter marbles which match the holed boards. |
x , y
|
Cartesian coordinates (numeric vectors) |
angle |
Rotation of piece (numeric vector of degrees, counter-clockwise) |
length.out |
The number of pieces. Not needed if all the arguments are the same length (or of length one) and this length is the same as the number of desired pieces. |
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()
.
dfb <- marble_board(nrows = 2L, scale_factor = 1.0) dfm <- marble_bits(x = c(1:2, 1:2, 1.5), y = c(1, 1, 2, 2, 1.5), suit = c(1:3, 5:6)) df <- rbind(dfb, dfm) if (require("piecepackr", quietly = TRUE) && packageVersion("piecepackr") >= "1.15.0-1") { grid::grid.newpage() envir = game_systems() pmap_piece(df, envir = envir, default.units = "in") }
dfb <- marble_board(nrows = 2L, scale_factor = 1.0) dfm <- marble_bits(x = c(1:2, 1:2, 1.5), y = c(1, 1, 2, 2, 1.5), suit = c(1:3, 5:6)) df <- rbind(dfb, dfm) if (require("piecepackr", quietly = TRUE) && packageVersion("piecepackr") >= "1.15.0-1") { grid::grid.newpage() envir = game_systems() pmap_piece(df, envir = envir, default.units = "in") }
normalize_name()
normalizes (game) name(s).
normalize_name(x, sep = "_")
normalize_name(x, sep = "_")
x |
Name to normalize. |
sep |
Separator character. |
normalize_name(x, sep = "_") is used to help create R variable names while
normalize_name(x, sep = "-")' is used to help create filenames and LaTeX labels.
Character vector of normalized names.
normalize_name("Fuji-san") normalize_name("Nine Men's Morris", sep = "-")
normalize_name("Fuji-san") normalize_name("Nine Men's Morris", sep = "-")
piecepack_rectangular_board()
returns a tibble data frame of a rectangular board of desired size
made using a maximum number of piecepack tiles.
It will use either “cells”, “points”, and/or “rivers” as necessary.
piecepack_donut_board()
returns 24 tiles arranged 5x5 with hole in middle.
piecepack_donut_board( ..., side = "back", piece_side = paste0("tile_", side), suit = rep(1:4, each = 6L), rank = rep.int(1:6, 4L), cfg = "piecepack", x0 = 1, y0 = 1, angle = 0 ) piecepack_rectangular_board( nrows = 8L, ncols = 8L, x0 = 1, y0 = 1, ..., max_tiles = 24L, suit = rep.int(1:4, 6L), rank = rep(1:6, each = 4L), cfg = "piecepack" )
piecepack_donut_board( ..., side = "back", piece_side = paste0("tile_", side), suit = rep(1:4, each = 6L), rank = rep.int(1:6, 4L), cfg = "piecepack", x0 = 1, y0 = 1, angle = 0 ) piecepack_rectangular_board( nrows = 8L, ncols = 8L, x0 = 1, y0 = 1, ..., max_tiles = 24L, suit = rep.int(1:4, 6L), rank = rep(1:6, each = 4L), cfg = "piecepack" )
... |
Should be left empty. |
side |
Either "face" or "back". |
piece_side |
Either "tile_face" or "tile_back". |
suit |
Vector of suit values to use for tile back (will be repeated). |
rank |
Vector of rank values to use for tile back (will be repeated). |
cfg |
"piecepack" or perhaps "playing_cards_expansion", "dual_piecepacks_expansion", or "subpack". |
x0 |
X coordinate for the center of the first cell/point for |
y0 |
Y coordinate for the center of the first cell/point for |
angle |
Rotation of piece (numeric vector of degrees, counter-clockwise) |
nrows |
Number of rows in game board |
ncols |
Number of columns in game board |
max_tiles |
Maximum number of tiles that can be used |
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()
.
tibble
data frames of setups for 12 checkers variants playable with a piecepack.
Data frame output can usually be plotted with pmap_piece(df, default.units = "in")
.
piecepack_american_checkers() piecepack_american_pool_checkers() piecepack_checkers() piecepack_brazilian_checkers() piecepack_czech_checkers() piecepack_english_checkers() piecepack_gothic_checkers() piecepack_italian_checkers() piecepack_jamaican_checkers() piecepack_portuguese_checkers() piecepack_russian_checkers() piecepack_spanish_checkers() piecepack_thai_checkers() piecepack_turkish_checkers()
piecepack_american_checkers() piecepack_american_pool_checkers() piecepack_checkers() piecepack_brazilian_checkers() piecepack_czech_checkers() piecepack_english_checkers() piecepack_gothic_checkers() piecepack_italian_checkers() piecepack_jamaican_checkers() piecepack_portuguese_checkers() piecepack_russian_checkers() piecepack_spanish_checkers() piecepack_thai_checkers() piecepack_turkish_checkers()
Here are links for more information about the various checkers variants:
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()
.
tibble
data frames of setups for 10 chess variants playable with a piecepack.
Data frame output can usually be plotted with pmap_piece(df, default.units = "in")
.
piecepack_alice_chess(has_subpack = FALSE, max_tiles = 24L) piecepack_baroque_chess(has_subpack = FALSE) piecepack_chaturaji(has_subpack = FALSE) piecepack_chess(has_subpack = FALSE) piecepack_chess960(..., seed = NULL, has_subpack = FALSE) piecepack_fischer_random_chess(..., seed = NULL, has_subpack = FALSE) piecepack_chinese_chess(has_subpack = FALSE) piecepack_four_seasons_chess(has_subpack = FALSE) piecepack_international_chess(has_subpack = FALSE) piecepack_japanese_chess(has_subpack = FALSE, cfg2 = "piecepack") piecepack_minishogi() piecepack_racing_kings() piecepack_shogi(has_subpack = FALSE, cfg2 = "piecepack") piecepack_ultima(has_subpack = FALSE) piecepack_xiangqi(has_subpack = FALSE)
piecepack_alice_chess(has_subpack = FALSE, max_tiles = 24L) piecepack_baroque_chess(has_subpack = FALSE) piecepack_chaturaji(has_subpack = FALSE) piecepack_chess(has_subpack = FALSE) piecepack_chess960(..., seed = NULL, has_subpack = FALSE) piecepack_fischer_random_chess(..., seed = NULL, has_subpack = FALSE) piecepack_chinese_chess(has_subpack = FALSE) piecepack_four_seasons_chess(has_subpack = FALSE) piecepack_international_chess(has_subpack = FALSE) piecepack_japanese_chess(has_subpack = FALSE, cfg2 = "piecepack") piecepack_minishogi() piecepack_racing_kings() piecepack_shogi(has_subpack = FALSE, cfg2 = "piecepack") piecepack_ultima(has_subpack = FALSE) piecepack_xiangqi(has_subpack = FALSE)
has_subpack |
Has a piecepack subpack |
max_tiles |
Maximum number of (piecepack) tiles available to build boards |
... |
Should be left empty. |
seed |
Seed that determines setup, either an integer or |
cfg2 |
A string of a piecepack expansion (or perhaps |
Here are links for more information about the various chess variants:
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 |
(International) Chess | https://www.ludism.org/ppwiki/Chess |
Minishogi | https://en.wikipedia.org/wiki/Minishogi |
Racing Kings | https://www.chessvariants.com/diffobjective.dir/racing.html |
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 |
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()
.
tibble
data frames of setups for 52 games playable with a piecepack.
Data frame output can usually be plotted with pmap_piece(df, default.units = "in")
.
piecepack_alien_city(seed = NULL, tiles = NULL) piecepack_black_pawn_trucking(seed = NULL) piecepack_brain_burn(seed = NULL) piecepack_burbuja(seed = NULL, tiles = NULL) piecepack_cardinals_guards(seed = NULL, tiles = NULL) piecepack_cell_management(seed = NULL) piecepack_chariots() piecepack_chinese_checkers() piecepack_halma() piecepack_coin_collectors(seed = NULL, tiles = NULL, coins = NULL, dice = NULL) piecepack_climbing_man(seed = NULL, variant = c("Basic", "Free")) piecepack_crocodile_hop(seed = NULL) piecepack_desfases(seed = NULL, tiles = NULL, dice = NULL) piecepack_dominoids(..., seed = NULL) piecepack_easy_slider(seed = NULL, tiles = NULL, coins = NULL, pawns = NULL) piecepack_everest() piecepack_four_blind_mice() piecepack_froggy_bottom() piecepack_fujisan(seed = NULL, coins = NULL, dice = NULL) piecepack_galaxy_express(seed = NULL) piecepack_iceberg(seed = NULL, tiles = NULL) piecepack_ice_floe() piecepack_japan(seed = NULL) piecepack_klondike(seed = NULL) piecepack_lab_rats(seed = NULL) piecepack_landlocked(seed = NULL) piecepack_ley_lines() piecepack_mathrix(seed = NULL, coins = NULL) piecepack_pawns_crossing(..., seed = NULL, n_players = 2L) piecepack_piecepackman(seed = NULL, variant = "Roundabout") piecepack_one_man_thrag(seed = NULL) piecepack_pass_the_food() piecepack_piece_gaps(seed = NULL) piecepack_piece_packing_pirates(seed = NULL) piecepack_plans_of_action(seed = NULL, coins = NULL) piecepack_relativity(seed = NULL, coins = NULL) piecepack_san_andreas() piecepack_sarcophagus(seed = NULL) piecepack_ship_it(..., seed = NULL) piecepack_shopping_mall(seed = NULL, cfg2 = "go") piecepack_skyscrapers(seed = NULL, tiles = NULL) piecepack_slides_of_action() piecepack_speedy_towers(n_players = 2, seed = NULL) piecepack_steppin_stones(seed = NULL) piecepack_the_in_crowd() piecepack_the_magic_bag(seed = NULL) piecepack_the_penguin_game(seed = NULL) piecepack_tower_of_babel(seed = NULL, tiles = NULL) piecepack_accordion(seed = NULL, tiles = NULL) piecepack_tracers() piecepack_triactor(seed = NULL, cfg2 = "playing_cards_expansion") piecepack_tula( seed = NULL, tiles = NULL, variant = c("Original", "Variant 1", "Variant 2", "Variant 3", "Variant 4") ) piecepack_wormholes()
piecepack_alien_city(seed = NULL, tiles = NULL) piecepack_black_pawn_trucking(seed = NULL) piecepack_brain_burn(seed = NULL) piecepack_burbuja(seed = NULL, tiles = NULL) piecepack_cardinals_guards(seed = NULL, tiles = NULL) piecepack_cell_management(seed = NULL) piecepack_chariots() piecepack_chinese_checkers() piecepack_halma() piecepack_coin_collectors(seed = NULL, tiles = NULL, coins = NULL, dice = NULL) piecepack_climbing_man(seed = NULL, variant = c("Basic", "Free")) piecepack_crocodile_hop(seed = NULL) piecepack_desfases(seed = NULL, tiles = NULL, dice = NULL) piecepack_dominoids(..., seed = NULL) piecepack_easy_slider(seed = NULL, tiles = NULL, coins = NULL, pawns = NULL) piecepack_everest() piecepack_four_blind_mice() piecepack_froggy_bottom() piecepack_fujisan(seed = NULL, coins = NULL, dice = NULL) piecepack_galaxy_express(seed = NULL) piecepack_iceberg(seed = NULL, tiles = NULL) piecepack_ice_floe() piecepack_japan(seed = NULL) piecepack_klondike(seed = NULL) piecepack_lab_rats(seed = NULL) piecepack_landlocked(seed = NULL) piecepack_ley_lines() piecepack_mathrix(seed = NULL, coins = NULL) piecepack_pawns_crossing(..., seed = NULL, n_players = 2L) piecepack_piecepackman(seed = NULL, variant = "Roundabout") piecepack_one_man_thrag(seed = NULL) piecepack_pass_the_food() piecepack_piece_gaps(seed = NULL) piecepack_piece_packing_pirates(seed = NULL) piecepack_plans_of_action(seed = NULL, coins = NULL) piecepack_relativity(seed = NULL, coins = NULL) piecepack_san_andreas() piecepack_sarcophagus(seed = NULL) piecepack_ship_it(..., seed = NULL) piecepack_shopping_mall(seed = NULL, cfg2 = "go") piecepack_skyscrapers(seed = NULL, tiles = NULL) piecepack_slides_of_action() piecepack_speedy_towers(n_players = 2, seed = NULL) piecepack_steppin_stones(seed = NULL) piecepack_the_in_crowd() piecepack_the_magic_bag(seed = NULL) piecepack_the_penguin_game(seed = NULL) piecepack_tower_of_babel(seed = NULL, tiles = NULL) piecepack_accordion(seed = NULL, tiles = NULL) piecepack_tracers() piecepack_triactor(seed = NULL, cfg2 = "playing_cards_expansion") piecepack_tula( seed = NULL, tiles = NULL, variant = c("Original", "Variant 1", "Variant 2", "Variant 3", "Variant 4") ) piecepack_wormholes()
seed |
Seed that determines setup, either an integer or |
tiles |
String of tile layout |
coins |
String of coin layout |
dice |
String of dice layout |
variant |
Name of variant |
... |
Should be left empty. |
pawns |
String of pawns layout |
n_players |
Number of players |
cfg2 |
A string of a piecepack expansion (or perhaps |
Here are links for more information about the various games:
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()
.
tibble
data frames of setups for 10 other games playable with a piecepack.
Data frame output can usually be plotted with pmap_piece(df, default.units = "in")
.
piecepack_12345ive() piecepack_breakthrough() piecepack_change_change(seed = NULL, coins = NULL) piecepack_crossings() piecepack_dao() piecepack_evade() piecepack_grasshopper() piecepack_lines_of_action() piecepack_lukawan() piecepack_quatri()
piecepack_12345ive() piecepack_breakthrough() piecepack_change_change(seed = NULL, coins = NULL) piecepack_crossings() piecepack_dao() piecepack_evade() piecepack_grasshopper() piecepack_lines_of_action() piecepack_lukawan() piecepack_quatri()
seed |
Seed that determines setup, either an integer or |
coins |
String of coin layout |
Here are links for more information about the various other games:
Game | URL |
12345ive! | https://boardgamegeek.com/boardgame/154644/12345ive |
Breakthrough | https://en.wikipedia.org/wiki/Breakthrough_(board_game) |
Crossings | https://en.wikipedia.org/wiki/Crossings_(game) |
Change Change | https://www.ludism.org/ppwiki/ChangeChange |
Dao | https://boardgamegeek.com/boardgame/948/dao |
Grasshopper | http://www.cyningstan.com/game/71/grasshopper |
Evade | https://www.ludism.org/ppwiki/Evade |
Lines of Action | https://en.wikipedia.org/wiki/Lines_of_Action |
Lukawan | https://ludism.org/ppwiki/Lukawan |
Quatri | https://www.ludism.org/ppwiki/Quatri |
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()
.
tibble
data frames of setups for 12 other traditional games playable with a piecepack.
Data frame output can usually be plotted with pmap_piece(df, default.units = "in")
.
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_four_field_kono() piecepack_julgonu() piecepack_ludo() piecepack_nine_mens_morris(has_matchsticks = FALSE) piecepack_salta(has_subpack = FALSE) piecepack_tablut(die_width = 0.63) piecepack_twelve_mens_morris(has_matchsticks = FALSE)
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_four_field_kono() piecepack_julgonu() piecepack_ludo() piecepack_nine_mens_morris(has_matchsticks = FALSE) piecepack_salta(has_subpack = FALSE) piecepack_tablut(die_width = 0.63) piecepack_twelve_mens_morris(has_matchsticks = FALSE)
has_matchsticks |
Has matchsticks |
has_subpack |
Has a piecepack subpack |
die_width |
Width of dice |
Here are links for more information about the various other traditional games:
Game | URL |
Alquerque AKA Qirkat | https://en.wikipedia.org/wiki/Alquerque |
Awithlaknannai Mosona | https://en.wikipedia.org/wiki/Awithlaknannai_Mosona |
Backgammon | https://www.ludism.org/ppwiki/Backgammon |
Bagh-chal | https://www.ludism.org/ppwiki/Bagh_Chal |
Brandubh AKA Brandub | http://www.cyningstan.com/game/125/brandub |
Cribbage | https://www.ludism.org/ppwiki/Cribbage |
Four Field Kono | https://www.ludism.org/ppwiki/FourFieldKono |
Jul-Gonu | https://www.ludism.org/ppwiki/JulGonu |
Ludo | https://en.wikipedia.org/wiki/Ludo_(board_game) |
Nine Men's Morris | https://en.wikipedia.org/wiki/Nine_men%27s_morris |
Salta | https://en.wikipedia.org/wiki/Salta_(game) |
Tablut | https://www.ludism.org/ppwiki/Tablut |
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()
.
piecepack_coins()
generates a data frame of piecepack coins.
piecepack_dice()
generates a data frame of piecepack dice.
piecepack_pawns()
generates a data frame of piecepack pawns.
piecepack_tiles()
generates a data frame of piecepack tiles.
piecepack_coins( ..., side = "face", piece_side = paste0("coin_", side), suit = rep(1:4, each = 6L), rank = rep.int(1:6, 4L), cfg = "piecepack", x = as.double(rep.int(1:6, 4L)), y = as.double(rep(4:1, each = 6L)), angle = 0, length.out = NA_integer_ ) piecepack_dice( ..., suit = 1:4, rank = 1L, cfg = "piecepack", x = as.double(1:4), y = 1, angle = 0, length.out = NA_integer_ ) piecepack_matchsticks( ..., side = "face", piece_side = paste0("matchstick_", side), suit = rep(1:4, each = 6L), rank = rep.int(1:6, 4L), cfg = "piecepack", x = as.double(rep.int(1:6, 4L)), y = 3 * rep(4:1, each = 6L), angle = 0, length.out = NA_integer_ ) piecepack_pawns( ..., side = "face", piece_side = paste0("pawn_", side), suit = 1:4, cfg = "piecepack", x = as.double(1:4), y = 1, angle = 0, length.out = NA_integer_ ) piecepack_tiles( ..., side = "face", piece_side = paste0("tile_", side), suit = rep(1:4, each = 6L), rank = rep.int(1:6, 4L), cfg = "piecepack", x = 2 * rep.int(1:6, 4L), y = 2 * rep(4:1, each = 6L), angle = 0, length.out = NA_integer_ )
piecepack_coins( ..., side = "face", piece_side = paste0("coin_", side), suit = rep(1:4, each = 6L), rank = rep.int(1:6, 4L), cfg = "piecepack", x = as.double(rep.int(1:6, 4L)), y = as.double(rep(4:1, each = 6L)), angle = 0, length.out = NA_integer_ ) piecepack_dice( ..., suit = 1:4, rank = 1L, cfg = "piecepack", x = as.double(1:4), y = 1, angle = 0, length.out = NA_integer_ ) piecepack_matchsticks( ..., side = "face", piece_side = paste0("matchstick_", side), suit = rep(1:4, each = 6L), rank = rep.int(1:6, 4L), cfg = "piecepack", x = as.double(rep.int(1:6, 4L)), y = 3 * rep(4:1, each = 6L), angle = 0, length.out = NA_integer_ ) piecepack_pawns( ..., side = "face", piece_side = paste0("pawn_", side), suit = 1:4, cfg = "piecepack", x = as.double(1:4), y = 1, angle = 0, length.out = NA_integer_ ) piecepack_tiles( ..., side = "face", piece_side = paste0("tile_", side), suit = rep(1:4, each = 6L), rank = rep.int(1:6, 4L), cfg = "piecepack", x = 2 * rep.int(1:6, 4L), y = 2 * rep(4:1, each = 6L), angle = 0, length.out = NA_integer_ )
... |
Should be left empty. |
side |
Either "face" or "back". |
piece_side |
Either "tile_face" or "tile_back". |
suit |
Integer vector with values between |
rank |
Integer vector with values between |
cfg |
"piecepack" or perhaps "playing_cards_expansion", "dual_piecepacks_expansion", or "subpack". |
x , y
|
Cartesian coordinates (numeric vectors) |
angle |
Rotation of piece (numeric vector of degrees, counter-clockwise) |
length.out |
The number of pieces. Not needed if all the arguments are the same length (or of length one) and this length is the same as the number of desired pieces. |
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()
.
df_coins <- piecepack_coins() df_dice <- piecepack_dice() df_pawns <- piecepack_pawns() df_tiles <- piecepack_tiles()
df_coins <- piecepack_coins() df_dice <- piecepack_dice() df_pawns <- piecepack_pawns() df_tiles <- piecepack_tiles()
These functions are Deprecated in this release of ppdf, they will be marked as Defunct and removed in a future version.
checkers_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) chess_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) dominoes_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) dominoes_concentration(seed = NULL) dominoes_domino_finder(seed = NULL) dominoes_domino_runners(seed = NULL) dominoes_fujisan(seed = NULL) dominoes_luzon(seed = NULL) dominoes_none() dominoes_patience(seed = NULL) dominoes_the_jubilee(seed = NULL) dominoes_tiles( n = 7, ..., side = "face", piece_side = paste0("tile_", side), suit = sequence(n:1, from = 1:n), rank = rep.int(1:n, n:1), cfg = "dominoes", x = sequence(n:1, from = 1:n), y = 2 * rep.int(n:1, n:1) - 0.5, angle = 0 ) games_checkers() games_chess() games_dominoes() games_piecepack() games_stackpack() piecepack_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) piecepack_piecepack_accordion(seed = NULL, tiles = NULL) piecepack_piecepack_halma() piecepack_piecepack_klondike(seed = NULL) piecepack_rect_board_tiles( nrows = 8L, ncols = 8L, x0 = 1, y0 = 1, max_tiles = 24L, suit = rep.int(1:4, 6L), rank = rep(1:6, each = 4L) ) stackpack_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) )
checkers_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) chess_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) dominoes_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) dominoes_concentration(seed = NULL) dominoes_domino_finder(seed = NULL) dominoes_domino_runners(seed = NULL) dominoes_fujisan(seed = NULL) dominoes_luzon(seed = NULL) dominoes_none() dominoes_patience(seed = NULL) dominoes_the_jubilee(seed = NULL) dominoes_tiles( n = 7, ..., side = "face", piece_side = paste0("tile_", side), suit = sequence(n:1, from = 1:n), rank = rep.int(1:n, n:1), cfg = "dominoes", x = sequence(n:1, from = 1:n), y = 2 * rep.int(n:1, n:1) - 0.5, angle = 0 ) games_checkers() games_chess() games_dominoes() games_piecepack() games_stackpack() piecepack_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) piecepack_piecepack_accordion(seed = NULL, tiles = NULL) piecepack_piecepack_halma() piecepack_piecepack_klondike(seed = NULL) piecepack_rect_board_tiles( nrows = 8L, ncols = 8L, x0 = 1, y0 = 1, max_tiles = 24L, suit = rep.int(1:4, 6L), rank = rep(1:6, each = 4L) ) stackpack_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) )
name |
Game name. Will be normalized by |
... |
Additional arguments to pass to the underlying setup function. |
getter |
Function with a single function name argument to use.
By default will just look for functions in this package but
a developer may want to consider |
seed |
Seed that determines setup, either an integer or |
n |
The number of doubles in a set e.g. |
side |
Either "face" or "back". |
piece_side |
Either "tile_face" or "tile_back". |
suit |
"Bottom" half of domino. |
rank |
"Top" half of domino. |
cfg |
"dominoes" or perhaps "dominoes_black", "dominoes_blue", "dominoes_green", "dominoes_red", "dominoes_white", or "dominoes_yellow". |
x , y
|
Cartesian coordinates (numeric vectors) |
angle |
Rotation of dominoes (numeric vector of degrees, counter-clockwise) |
tiles |
String of tile layout |
nrows |
Number of rows in game board |
ncols |
Number of columns in game board |
x0 |
X coordinate for the center of the first cell/point for |
y0 |
Y coordinate for the center of the first cell/point for |
max_tiles |
Maximum number of tiles that can be used |
Deprecated function | Replacement function |
checkers_by_name() |
checkers_setup_by_name() |
chess_by_name() |
chess_setup_by_name() |
dominoes_by_name() |
domino_setup_by_name() |
dominoes_concentration() |
domino_concentration() |
dominoes_domino_finder() |
domino_finder() |
dominoes_domino_runners() |
domino_runners() |
dominoes_fujisan() |
domino_fujisan() |
dominoes_luzon() |
domino_luzon() |
dominoes_none() |
domino_none() |
dominoes_patience() |
domino_patience() |
dominoes_the_jubilee() |
domino_the_jubilee() |
dominoes_tiles() |
domino_tiles() |
games_checkers() |
checkers_games() |
games_chess() |
chess_games() |
games_dominoes() |
domino_games() |
games_piecepack() |
piecepack_games() |
games_stackpack() |
stackpack_games() |
piecepack_by_name() |
piecepack_setup_by_name() |
piecepack_piecepack_accordion() |
piecepack_accordion() |
piecepack_piecepack_halma() |
piecepack_halma() |
piecepack_piecepack_klondike() |
piecepack_klondike() |
piecepack_rect_board_tiles() |
piecepack_rectangular_board() |
stackpack_by_name() |
stackpack_setup_by_name() |
setup_by_name()
returns setup data frames by game name and game system.
alquerque_setup_by_name()
, checkers_setup_by_name()
, chess_setup_by_name()
,
dominoes_setup_by_name()
, marble_setup_by_name()
, piecepack_setup_by_name()
and stackpack_setup_by_name()
are aliases that set the game system.
setup_by_name( name, system = known_game_systems, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) alquerque_setup_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) checkers_setup_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) chess_setup_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) domino_setup_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) marble_setup_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) piecepack_setup_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) stackpack_setup_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) )
setup_by_name( name, system = known_game_systems, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) alquerque_setup_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) checkers_setup_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) chess_setup_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) domino_setup_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) marble_setup_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) piecepack_setup_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) ) stackpack_setup_by_name( name, ..., getter = function(x) get(x, envir = getNamespace("ppdf")) )
name |
Game name. Will be normalized by |
system |
Game system. |
... |
Additional arguments to pass to the underlying setup function. |
getter |
Function with a single function name argument to use.
By default will just look for functions in this package but
a developer may want to consider |
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()
.
alquerque_none()
, checkers_none()
, chess_none()
, dominoes_none()
,
marbles_none()
, piecepack_none()
, and stackpack_none()
return zero-row data frames.
alquerque_none() checkers_none() chess_none() domino_none() marbles_none() piecepack_none() stackpack_none()
alquerque_none() checkers_none() chess_none() domino_none() marbles_none() piecepack_none() stackpack_none()
A data frame with zero rows.
checkers_none()
checkers_none()
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")
.
stackpack_alice_chess(max_tiles = 24L) stackpack_baroque_chess() stackpack_chaturaji() stackpack_chess() stackpack_chess960(..., seed = NULL) stackpack_fischer_random_chess(..., seed = NULL, has_subpack = FALSE) stackpack_chinese_chess() stackpack_four_seasons_chess() stackpack_horde_chess() stackpack_international_chess() stackpack_japanese_chess() stackpack_salta() stackpack_shogi() stackpack_ultima() stackpack_xiangqi()
stackpack_alice_chess(max_tiles = 24L) stackpack_baroque_chess() stackpack_chaturaji() stackpack_chess() stackpack_chess960(..., seed = NULL) stackpack_fischer_random_chess(..., seed = NULL, has_subpack = FALSE) stackpack_chinese_chess() stackpack_four_seasons_chess() stackpack_horde_chess() stackpack_international_chess() stackpack_japanese_chess() stackpack_salta() stackpack_shogi() stackpack_ultima() stackpack_xiangqi()
max_tiles |
Maximum number of (piecepack) tiles available to build boards |
... |
Should be left empty. |
seed |
Seed that determines setup, either an integer or |
has_subpack |
Has a piecepack subpack |
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 |
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()
.