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

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

22.5 kB minified and gzipped, with everything it imports (measured with esbuild)

Exports

NameKindWhat it is
defineBoardfunctionDefines the default board or a subclass under a custom tag.
NARABE_DRAW_OPTION_KEYSconstantNative drawing option keys, checked by the embed builder.
NARABE_EMBED_OPTION_KEYSconstantReal host option keys, checked by the embed builder.
NarabeBoardclassA board position and keyboard-operable replay of the native game engine.
NarabeElementOptionstypeHost state, rules, replay choices, drawing options and callbacks.
parseEmbedMovesfunctionReads a bounded JSON move list for a board embed, or null for malformed input.

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