Setups for checkers variants playable with a piecepack
Source:R/piecepack_games_checkers.R
piecepack_games_checkers.Rdtibble data frames of setups for 17 checkers variants playable with a piecepack.
Data frame output can usually be plotted with pmap_piece(df, default.units = "in").
Usage
piecepack_american_checkers()
piecepack_american_pool_checkers()
piecepack_bashni()
piecepack_brazilian_checkers()
piecepack_checkers()
piecepack_column_checkers()
piecepack_corner_checkers()
piecepack_czech_checkers()
piecepack_english_checkers()
piecepack_gothic_checkers()
piecepack_italian_checkers()
piecepack_jamaican_checkers()
piecepack_one_way_checkers()
piecepack_portuguese_checkers()
piecepack_russian_checkers()
piecepack_spanish_checkers()
piecepack_thai_checkers()
piecepack_turkish_checkers()
piecepack_unified_pool_checkers()
piecepack_zimbabwean_pool_checkers()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 checkers variants:
Examples
df <- piecepack_american_checkers()
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│⸸⃝┃ │⸸⃝┃ │♛⃝┃ │♛⃝┃ │
#> └─┸─┴─┸─┴─┸─┴─┸─┘
#> a b c d e f g h