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

hasHandicapfunction

Whether any handicap is in force for anyone: harder rules for one colour, or a head start for one.

THE ONE PLACE THAT QUESTION IS ANSWERED, and a rating depends on it: a game this is true of moves nobody's rating (handicapRefusal). The head start joined here and in HandicapTerms, and was refused a rating without anybody having to find the rating code.

Import it

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

Definition

function hasHandicap(settings: HandicapTerms): boolean

Parameters

NameTypeDescription
settingsHandicapTerms

The native game settings to interpret.

Returns

boolean

Whether any handicap is in force for anyone: harder rules for one colour, or a head start for one. THE ONE PLACE THAT QUESTION IS ANSWERED, and a rating depends on it: a game this is true of moves nobody's rating (handicapRefusal). The head start joined here and in HandicapTerms, and was refused a rating without anybody having to find the rating code.

Examples

import { createGame, hasHandicap } from "@johnmorrisdotca/narabe";

const state = createGame({variant:"freestyle",size:15});
console.log(hasHandicap(state.settings));
false

What it prints (run when this page was built)

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