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

BRAZILIAN_DRAUGHTS_RULESconstant

Brazilian draughts: the international rules of capture and crowning on 8×8, with twelve men, and the draws of the Brazilian confederation's own rules (CBJD, Regras Oficiais) rather than the FMJD's 8×8 set, which differs. A third repetition (art. 98), and five moves each for the small endings of art. 99: two kings against two, two kings against one, two kings against a king and a man, a king against a king, a king against a king and a man. Its twenty-move kings-only count is in rules/noProgress.ts.

NOT APPLIED: art. 100, five moves for three pieces against a lone king on the long diagonal, for the same reason as the FMJD's version of it above. With it left out, those endings are bounded by the kings-only count instead.

Import it

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

Definition

const BRAZILIAN_DRAUGHTS_RULES: CheckersRules = {
    ...INTERNATIONAL_DRAUGHTS_RULES,
    menRows: 3,
    endgameCounts: [
        {
            kind: ENDGAME_COUNT_KINDS.endings,
            restartsOnChange: false,
            endings: [
                [{ kings: 2, men: 0 }, { kings: 2, men: 0 }],
                [{ kings: 2, men: 0 }, LONE_KING],
                [{ kings: 2, men: 0 }, { kings: 1, men: 1 }],
                [LONE_KING, LONE_KING],
                [LONE_KING, { kings: 1, men: 1 }],
            ],
            movesEach: 5,
        },
    ],
}

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 { BRAZILIAN_DRAUGHTS_RULES } from "@johnmorrisdotca/narabe";
console.log(BRAZILIAN_DRAUGHTS_RULES);
{
  menRows: 3,
  menCaptureBackward: true,
  flyingKings: true,
  captureChoice: 'maximum',
  crownMidCapture: 'passes',
  repetitionDraw: 3,
  endgameCounts: [
    {
      kind: 'endings',
      restartsOnChange: false,
      endings: [Array],
      movesEach: 5
    }
  ]
}

What it prints (run when this page was built)

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