本文へ移動

Narabe並べ

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

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

目次

リファレンス · ルールと棋譜

MoveKind型

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

place: an ordinary stone. skip: a deliberately wasted move, dropped on the emptiest corner. move: a piece stepping from from to the move's point, in the games where a fixed handful of pieces move once they are all down. piece: a multi-cell piece from the queue, laid as cells. pass: a turn taken without a stone that the rules offered — nothing fit, or Go, where passing is always a choice. A missed deadline is a pass too wherever a pass is on offer, since there it IS one. forfeit: a turn taken away by the clock where the rules offer no pass. Only a claimed timeout writes one, and a replay applies it only to a record that ran a clock. Kept apart from pass because the two replay differently: a pass the rules refuse stops a replay, and a forfeit read as a pass would stop every game with a timeout in it at the turn that was lost. Neither has a point; their row and column are -1.

インポート

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

定義

type MoveKind = "place" | "skip" | "move" | "piece" | "pass" | "forfeit";

例

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

const value: MoveKind = "place";
console.log(value);
place

出力(このページを作ったときに実行した結果)

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

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