Skip to the content

Narabe並べ

Play forty-eight abstract board games through immutable moves, legal choices and replayable records.

Narabe means arranging in Japanese, as in gomoku-narabe: five in a row. About the name

Contents

Reference · Rules and records

POOL_CHECKERS_RULESconstant

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 it

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

Definition

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,
        },
    ],
}

Members

NameTypeDescription
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.

Examples

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
    }
  ]
}

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/narabe 1.3.0.