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

HandicapTermstype

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 it

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

Definition

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

Members

NameTypeDescription
handicapHandicap
headStartHeadStart

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

Examples

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

What it prints (run when this page was built)

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