本文へ移動

Narabe並べ

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

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

目次

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

HandicapTerms型

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

EVERYTHING THAT MAKES A GAME UNEVEN ON PURPOSE, as hasHandicap reads it: the per-colour handicap and the head start. Every question that takes it — whether a rating may move, on the pages, the set-up screen and the writers — has to be handed both, so none of them can go on rating a game with either.

インポート

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

定義

type HandicapTerms = Pick<GameSettings, "handicap" | "headStart">;

メンバー

名前型説明
handicapHandicap
headStartHeadStart

A start for one colour, see HeadStart. NO_HEAD_START for an even game.

例

import type { HandicapTerms } from "@johnmorrisdotca/narabe";
import { NO_HANDICAP, NO_HEAD_START } from "@johnmorrisdotca/narabe";

const value: HandicapTerms = {handicap:NO_HANDICAP,headStart:NO_HEAD_START};
console.log(value);
{
  handicap: {
    stone: null,
    doubleThree: false,
    doubleFour: false,
    overline: false,
    exactLine: false,
    openLine: false,
    longerLine: false,
    singleStone: false,
    noCaptures: false,
    secondStoneExclusion: 0
  },
  headStart: { stone: null, freeTurns: 0, traditional: 0 }
}

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

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

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