本文へ移動

Narabe並べ

48種類の盤上ゲームを、新しい局面を返す手の操作、合法手の一覧、再生できる棋譜で扱えます。

「並べ」は五目並べの「並べ」。石を並べることを表す言葉です。 名前について(英語)

目次

リファレンス

盤面の要素

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

最小化と gzip 圧縮をしたサイズは 22.5 kB(読み込むものをすべて含み、esbuild で計測)

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
defineBoard関数Defines the default board or a subclass under a custom tag.
NARABE_DRAW_OPTION_KEYS定数Native drawing option keys, checked by the embed builder.
NARABE_EMBED_OPTION_KEYS定数Real host option keys, checked by the embed builder.
NarabeBoardクラスA board position and keyboard-operable replay of the native game engine.
NarabeElementOptions型Host state, rules, replay choices, drawing options and callbacks.
parseEmbedMoves関数Reads a bounded JSON move list for a board embed, or null for malformed input.

ソースを見るGitHub で編集@johnmorrisdotca/narabe 1.3.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。