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 · Board element

defineBoardfunction

Defines the default board or a subclass under a custom tag. Safe on a server.

Import it

import { defineBoard } from "@johnmorrisdotca/narabe/element";

Also exported from: @johnmorrisdotca/narabe/element/define

Definition

function defineBoard(tagName?: string, registry?: CustomElementRegistry | undefined): void

Parameters

NameTypeDescription
tagName (optional)string

The tag to define; narabe-board by default.

registry (optional)CustomElementRegistry | undefined

The page's registry, or undefined on a server.

Examples

import { defineBoard } from "@johnmorrisdotca/narabe/element";
defineBoard();
console.log(typeof defineBoard);
function

What it prints (run when this page was built)

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