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

Pointtype

Zero-based board coordinates. Row 0 is the top, column 0 is the left.

Import it

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

Definition

type Point = {
    row: number;
    col: number;
};

Members

NameTypeDescription
rownumber
colnumber

Examples

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

const value: Point = {row:7,col:7};
console.log(value);
{ row: 7, col: 7 }

What it prints (run when this page was built)

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