本文へ移動

Narabe並べ

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

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

目次

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

HeadStart型

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

A start given to one colour — the weaker player's — before the game is even.

freeTurns: turns this colour takes at the start with nothing played between them, 0 to 3. Each is recorded as the other colour's pass, so a replay reaches the same position from the move list alone. traditional: how much of the game's own traditional head start this colour is given — handicap stones, corners, or the other side's men taken off — as its spec's headStart names; 0 for none. See rules/headStart.ts.

The opposite colour from a handicap's, by nature: a handicap makes the stronger side's game harder, a head start makes the weaker side's easier.

インポート

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

定義

type HeadStart = {
    stone: Stone | null;
    freeTurns: number;
    traditional: number;
};

メンバー

名前型説明
stoneStone | null
freeTurnsnumber
traditionalnumber

例

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

const value: HeadStart = {stone:"black",freeTurns:1,traditional:0};
console.log(value);
{ stone: 'black', freeTurns: 1, traditional: 0 }

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

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

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