Skip to contents

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

Usage

alquerque_alquerque()

alquerque_baghchal()

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
Alquerquehttps://en.wikipedia.org/wiki/Alquerque
Bagh-chalhttps://en.wikipedia.org/wiki/Bagh-chal

Examples

df <- alquerque_alquerque()
if (requireNamespace("ppcli", quietly = TRUE) &&
    packageVersion("ppcli") >= "0.2.0-1") {
  ppcli::cat_piece(df)
}
#>             
#>   ●─●─●─●─● 
#>   │╲│╱│╲│╱│ 
#>   ●─●─●─●─● 
#>   │╱│╲│╱│╲│ 
#>   ●─●─┼─○─○ 
#>   │╲│╱│╲│╱│ 
#>   ○─○─○─○─○ 
#>   │╱│╲│╱│╲│ 
#>   ○─○─○─○─○ 
#>             
#>