Skip to the content

Narabe並べ

Play forty-eight abstract board games through immutable moves, legal choices and replayable records.

Narabe means arranging in Japanese, as in gomoku-narabe: five in a row. About the name

Contents

Reference · Rules and records

Piecetype

A piece from the queue: its cells relative to the top-left of its bounding box.

Import it

import type { Piece } from "@johnmorrisdotca/narabe";

Definition

type Piece = {
    cells: readonly PieceCell[];
};

Members

NameTypeDescription
cellsreadonly PieceCell[]

Examples

import type { Piece } from "@johnmorrisdotca/narabe";

const value: Piece = {cells:[{row:0,col:0,stone:"black"},{row:0,col:1,stone:"white"}]};
console.log(value);
{
  cells: [
    { row: 0, col: 0, stone: 'black' },
    { row: 0, col: 1, stone: 'white' }
  ]
}

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/narabe 1.3.0.