df_rect_board_tiles | R Documentation |
df_rect_board_tiles
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.
df_rect_board_tiles(
nrows = 8,
ncols = 8,
x0 = 1,
y0 = 1,
max_tiles = 24,
suit = rep(1:4, 6),
rank = rep(1:6, each = 4)
)
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 |
y0 |
Y coordinate for the center of the first cell/point |
max_tiles |
Maximum number of tiles that can be used |
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). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.