boards: Compute rectangular game boards using piecepack tiles

df_rect_board_tilesR Documentation

Compute rectangular game boards using piecepack tiles

Description

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.

Usage

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)
)

Arguments

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).


piecepackr/ppgames documentation built on Jan. 17, 2025, 2:24 p.m.