These functions are Deprecated in this release of ppdf, they will be marked as Defunct and removed in a future version.
Usage
chess_angle(angle)
domino_angle(angle)
piecepack_angle(angle)
tarot_angle(angle)
alquerque_suit(suit)
checker_suit(suit)
chess_suit(suit)
go_suit(suit)
marble_suit(suit)
morris_suit(suit)
piecepack_suit(suit)
domino_rank(rank)
piecepack_rank(rank)
checkers_american_checkers(cell_width = 1)
checkers_american_pool_checkers(cell_width = 1)
checkers_board(cell_width = 1)
checkers_brazilian_checkers(cell_width = 1)
checkers_breakthrough(cell_width = 1)
checkers_by_name(
name,
...,
getter = function(x) get(x, envir = getNamespace("ppdf"))
)
checkers_canadian_checkers(cell_width = 1)
checkers_crossings(cell_width = 1)
checkers_czech_checkers(cell_width = 1)
checkers_checkers(cell_width = 1)
checkers_dameo(cell_width = 1)
checkers_english_checkers(cell_width = 1)
checkers_focus(cell_width = 1)
checkers_four_field_kono(cell_width = 1)
checkers_frisian_checkers(cell_width = 1)
checkers_gothic_checkers(cell_width = 1)
checkers_grasshopper(cell_width = 1)
checkers_international_checkers(cell_width = 1)
checkers_italian_checkers(cell_width = 1)
checkers_jamaican_checkers(cell_width = 1)
checkers_julgonu(cell_width = 1)
checkers_lines_of_action(cell_width = 1)
checkers_none()
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)
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"))
)Arguments
- angle
Rotation of dominoes (numeric vector of degrees, counter-clockwise). Will be coerced by
piece_angle().- suit
"Bottom" half of domino. Will be coerced by
domino_suit().- rank
"Top" half of domino. Will be coerced by
piece_rank().- cell_width
Width of board cell. Most renderers support
1or2.- name
Game name. Will be normalized by
normalize_name().- ...
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
dynGet()or a wrapper aroundget()with a customenvirargument.- seed
Seed that determines setup, either an integer or
NULL- n
The number of doubles in a set e.g.
n = 7for double-6 set,n = 10for a double-9 set,n = 13for a double-12 set.- side
Either "face" or "back".
- piece_side
Either "tile_face" or "tile_back".
- cfg
"dominoes" or perhaps "dominoes_black", "dominoes_blue", "dominoes_green", "dominoes_red", "dominoes_white", or "dominoes_yellow".
- x, y
Cartesian coordinates (numeric vectors)
- 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
piecepack_rectangular_board(). X coordinate for center of bottom-left tile forpiecepack_donut_board().- y0
Y coordinate for the center of the first cell/point for
piecepack_rectangular_board(). Y coordinate for center of bottom-left tile forpiecepack_donut_board().- max_tiles
Maximum number of tiles that can be used
Details
| 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() |