本文へ移動

Narabe並べ

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

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

目次

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

POOL_CHECKERS_RULES定数

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

Pool checkers, from the American Pool Checker Association's Tournament Rules of Play (2016): men take both ways (rule 14), kings fly (15, 18), any capture may be chosen — "not compelled to take the greater or lesser number" (20) — and a capture once begun is completed (21). A man that must jump on out of the king row stays a man, and one whose move ends there is crowned (22, 23). Black moves first (7).

The one count of the APCA's this site can read is the thirteen count (27): three kings against a lone king, all four kings, drawn once the lone king has made thirteen moves. Counted here as thirteen moves each, which is that exactly when the lone king moves second in the ending and one move later for the stronger side when it moves first — the generous side. There is no repetition rule: the APCA has none outside its thirty-move rule.

NOT APPLIED: the thirty-move rule (26), which the weaker side announces and counts, in endgames the players themselves identify. Nobody announces anything here, and a count that fired unasked would be a different rule. Nor the five-move count for a lone king on the long line (28), as above. A game going nowhere is ended instead by the site's own forty-move count in rules/noProgress.ts, the same as Checkers', and the rules page says so.

インポート

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

定義

const POOL_CHECKERS_RULES: CheckersRules = {
    menRows: 3,
    menCaptureBackward: true,
    flyingKings: true,
    captureChoice: CAPTURE_CHOICES.free,
    crownMidCapture: CROWN_MID_CAPTURE.passes,
    repetitionDraw: null,
    endgameCounts: [
        {
            kind: ENDGAME_COUNT_KINDS.endings,
            restartsOnChange: false,
            endings: [[{ kings: 3, men: 0 }, LONE_KING]],
            movesEach: 13,
        },
    ],
}

メンバー

名前型説明
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 { POOL_CHECKERS_RULES } from "@johnmorrisdotca/narabe";
console.log(POOL_CHECKERS_RULES);
{
  menRows: 3,
  menCaptureBackward: true,
  flyingKings: true,
  captureChoice: 'free',
  crownMidCapture: 'passes',
  repetitionDraw: null,
  endgameCounts: [
    {
      kind: 'endings',
      restartsOnChange: false,
      endings: [Array],
      movesEach: 13
    }
  ]
}

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

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

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