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

endsOnItsOwnfunction

Whether the rules alone guarantee this game ends.

Import it

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

Definition

function endsOnItsOwn(settings: GameSettings): boolean

Parameters

NameTypeDescription
settingsGameSettings

The native game settings to interpret.

Returns

boolean

Whether the rules alone guarantee this game ends.

Examples

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

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

What it prints (run when this page was built)

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