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

WIN_REASONSconstant

The recorded reasons a game is won.

Import it

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

Definition

const WIN_REASONS: { readonly line: "line"; readonly captures: "captures"; readonly time: "time"; readonly resign: "resign"; readonly trap: "trap"; readonly square: "square"; readonly full: "full"; readonly count: "count"; readonly camp: "camp"; readonly connection: "connection"; readonly blocked: "blocked"; readonly territory: "territory"; } = {
    line: "line",
    captures: "captures",
    time: "time",
    resign: "resign",
    trap: "trap",
    square: "square",
    full: "full",
    count: "count",
    camp: "camp",
    connection: "connection",
    blocked: "blocked",
    territory: "territory",
} as const satisfies Record<WinReason, WinReason>

Members

NameTypeDescription
line"line"
captures"captures"
time"time"
resign"resign"
trap"trap"
square"square"
full"full"
count"count"
camp"camp"
connection"connection"
blocked"blocked"
territory"territory"

Examples

import { WIN_REASONS } from "@johnmorrisdotca/narabe";
console.log(WIN_REASONS);
{
  line: 'line',
  captures: 'captures',
  time: 'time',
  resign: 'resign',
  trap: 'trap',
  square: 'square',
  full: 'full',
  count: 'count',
  camp: 'camp',
  connection: 'connection',
  blocked: 'blocked',
  territory: 'territory'
}

What it prints (run when this page was built)

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