All files / web/src/arcade-games/rithmomachia/constants board.ts

0% Statements 0/41
0% Branches 0/1
0% Functions 0/1
0% Lines 0/41

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42                                                                                   
/**
 * Board layout constants
 * Rithmomachia uses a 16x8 board (16 columns, 8 rows)
 */

export const BOARD_ROWS = 8
export const BOARD_COLUMNS = 16

/**
 * Column labels (A-P for 16 columns)
 */
export const COLUMN_LABELS = [
  'A',
  'B',
  'C',
  'D',
  'E',
  'F',
  'G',
  'H',
  'I',
  'J',
  'K',
  'L',
  'M',
  'N',
  'O',
  'P',
] as const

/**
 * Row labels (1-8)
 */
export const ROW_LABELS = [1, 2, 3, 4, 5, 6, 7, 8] as const

/**
 * Default board dimensions (can be overridden)
 */
export const DEFAULT_CELL_SIZE = 64
export const DEFAULT_GAP = 4
export const DEFAULT_PADDING = 32