本文へ移動

Narabe並べ

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

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

目次

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

CANADIAN_CHECKERS_RULES定数

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

Canadian checkers: the international rules on 12×12, thirty men a side in five rows. No federation's draw rules for it could be found — the Quebec association's own site did not answer — so its draws are the FMJD's, borrowed, and its rules page says so.

インポート

import { CANADIAN_CHECKERS_RULES } from "@johnmorrisdotca/narabe";

定義

const CANADIAN_CHECKERS_RULES: CheckersRules = {
    ...INTERNATIONAL_DRAUGHTS_RULES,
    menRows: 5,
}

メンバー

名前型説明
menRowsnumber

Rows of men each side starts with, on the dark squares of its own side of the board.

menCaptureBackwardboolean

Whether a man may capture backward as well as forward. It always steps forward only.

flyingKingsboolean

Whether a king flies: moves any distance along an open diagonal, and takes a piece at any distance, landing on any empty square beyond it. Otherwise a king moves one square and jumps an adjacent piece, as a man does, both ways.

captureChoiceCaptureChoice
crownMidCaptureCrownMidCapture
repetitionDrawnumber | null

The same position standing for this many times, with the same side to move, is a draw. Null where this game is not played with a repetition rule here.

endgameCountsreadonly EndgameCount[]

The endings the stronger side must win within a count of moves, or draw.

例

import { CANADIAN_CHECKERS_RULES } from "@johnmorrisdotca/narabe";
console.log(CANADIAN_CHECKERS_RULES);
{
  menRows: 5,
  menCaptureBackward: true,
  flyingKings: true,
  captureChoice: 'maximum',
  crownMidCapture: 'passes',
  repetitionDraw: 3,
  endgameCounts: [
    {
      kind: 'endings',
      restartsOnChange: false,
      endings: [Array],
      movesEach: 16
    },
    {
      kind: 'endings',
      restartsOnChange: false,
      endings: [Array],
      movesEach: 5
    }
  ]
}

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

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

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