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

RULE_VARIANTSconstant

The stable identifiers for all forty-eight rule variants.

Import it

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

Definition

const RULE_VARIANTS: { readonly freestyle: "freestyle"; readonly standard: "standard"; readonly renju: "renju"; readonly omok: "omok"; readonly caro: "caro"; readonly ninuki: "ninuki"; readonly connect6: "connect6"; readonly tictactoe: "tictactoe"; readonly trapThree: "trapThree"; readonly dropFour: "dropFour"; readonly twistFive: "twistFive"; readonly twistFour: "twistFour"; readonly squareFour: "squareFour"; readonly ringDrop: "ringDrop"; readonly holeDrop: "holeDrop"; readonly hotDrop: "hotDrop"; readonly clearDrop: "clearDrop"; readonly giveawayDrop: "giveawayDrop"; readonly edgeDrop: "edgeDrop"; readonly dominoFive: "dominoFive"; readonly blockFive: "blockFive"; readonly sannuki: "sannuki"; readonly wormDrop: "wormDrop"; readonly misereFive: "misereFive"; readonly makerBreaker: "makerBreaker"; readonly wildTicTacToe: "wildTicTacToe"; readonly notakto: "notakto"; readonly toroidalFive: "toroidalFive"; readonly obstacleFive: "obstacleFive"; readonly rockfall: "rockfall"; readonly scatteredRocks: "scatteredRocks"; readonly reversi: "reversi"; readonly classicReversi: "classicReversi"; readonly antiReversi: "antiReversi"; readonly miniReversi: "miniReversi"; readonly grandReversi: "grandReversi"; readonly honeycomb: "honeycomb"; readonly halma: "halma"; readonly hex: "hex"; readonly hexFive: "hexFive"; readonly checkers: "checkers"; readonly internationalDraughts: "internationalDraughts"; readonly brazilianDraughts: "brazilianDraughts"; readonly canadianCheckers: "canadianCheckers"; readonly russianDraughts: "russianDraughts"; readonly poolCheckers: "poolCheckers"; readonly chineseCheckers: "chineseCheckers"; readonly go: "go"; } = {
    freestyle: "freestyle",
    standard: "standard",
    renju: "renju",
    omok: "omok",
    caro: "caro",
    ninuki: "ninuki",
    connect6: "connect6",
    tictactoe: "tictactoe",
    trapThree: "trapThree",
    dropFour: "dropFour",
    twistFive: "twistFive",
    twistFour: "twistFour",
    squareFour: "squareFour",
    ringDrop: "ringDrop",
    holeDrop: "holeDrop",
    hotDrop: "hotDrop",
    clearDrop: "clearDrop",
    giveawayDrop: "giveawayDrop",
    edgeDrop: "edgeDrop",
    dominoFive: "dominoFive",
    blockFive: "blockFive",
    sannuki: "sannuki",
    wormDrop: "wormDrop",
    misereFive: "misereFive",
    makerBreaker: "makerBreaker",
    wildTicTacToe: "wildTicTacToe",
    notakto: "notakto",
    toroidalFive: "toroidalFive",
    obstacleFive: "obstacleFive",
    rockfall: "rockfall",
    scatteredRocks: "scatteredRocks",
    reversi: "reversi",
    classicReversi: "classicReversi",
    antiReversi: "antiReversi",
    miniReversi: "miniReversi",
    grandReversi: "grandReversi",
    honeycomb: "honeycomb",
    halma: "halma",
    hex: "hex",
    hexFive: "hexFive",
    checkers: "checkers",
    internationalDraughts: "internationalDraughts",
    brazilianDraughts: "brazilianDraughts",
    canadianCheckers: "canadianCheckers",
    russianDraughts: "russianDraughts",
    poolCheckers: "poolCheckers",
    chineseCheckers: "chineseCheckers",
    go: "go",
} as const satisfies Record<RuleVariant, RuleVariant>

Members

NameTypeDescription
freestyle"freestyle"
standard"standard"
renju"renju"
omok"omok"
caro"caro"
ninuki"ninuki"
connect6"connect6"
tictactoe"tictactoe"
trapThree"trapThree"
dropFour"dropFour"
twistFive"twistFive"
twistFour"twistFour"
squareFour"squareFour"
ringDrop"ringDrop"
holeDrop"holeDrop"
hotDrop"hotDrop"
clearDrop"clearDrop"
giveawayDrop"giveawayDrop"
edgeDrop"edgeDrop"
dominoFive"dominoFive"
blockFive"blockFive"
sannuki"sannuki"
wormDrop"wormDrop"
misereFive"misereFive"
makerBreaker"makerBreaker"
wildTicTacToe"wildTicTacToe"
notakto"notakto"
toroidalFive"toroidalFive"
obstacleFive"obstacleFive"
rockfall"rockfall"
scatteredRocks"scatteredRocks"
reversi"reversi"
classicReversi"classicReversi"
antiReversi"antiReversi"
miniReversi"miniReversi"
grandReversi"grandReversi"
honeycomb"honeycomb"
halma"halma"
hex"hex"
hexFive"hexFive"
checkers"checkers"
internationalDraughts"internationalDraughts"
brazilianDraughts"brazilianDraughts"
canadianCheckers"canadianCheckers"
russianDraughts"russianDraughts"
poolCheckers"poolCheckers"
chineseCheckers"chineseCheckers"
go"go"

Examples

import { RULE_VARIANTS } from "@johnmorrisdotca/narabe";
console.log(RULE_VARIANTS);
{
  freestyle: 'freestyle',
  standard: 'standard',
  renju: 'renju',
  omok: 'omok',
  caro: 'caro',
  ninuki: 'ninuki',
  connect6: 'connect6',
  tictactoe: 'tictactoe',
  trapThree: 'trapThree',
  dropFour: 'dropFour',
  twistFive: 'twistFive',
  twistFour: 'twistFour',
  squareFour: 'squareFour',
  ringDrop: 'ringDrop',
  holeDrop: 'holeDrop',
  hotDrop: 'hotDrop',
  clearDrop: 'clearDrop',
  giveawayDrop: 'giveawayDrop',
  edgeDrop: 'edgeDrop',
  dominoFive: 'dominoFive',
  blockFive: 'blockFive',
  sannuki: 'sannuki',
  wormDrop: 'wormDrop',
  misereFive: 'misereFive',
  makerBreaker: 'makerBreaker',
  wildTicTacToe: 'wildTicTacToe',
  notakto: 'notakto',
  toroidalFive: 'toroidalFive',
  obstacleFive: 'obstacleFive',
  rockfall: 'rockfall',
  scatteredRocks: 'scatteredRocks',
  reversi: 'reversi',
  classicReversi: 'classicReversi',
  antiReversi: 'antiReversi',
  miniReversi: 'miniReversi',
  grandReversi: 'grandReversi',
  honeycomb: 'honeycomb',
  halma: 'halma',
  hex: 'hex',
  hexFive: 'hexFive',
  checkers: 'checkers',
  internationalDraughts: 'internationalDraughts',
  brazilianDraughts: 'brazilianDraughts',
  canadianCheckers: 'canadianCheckers',
  russianDraughts: 'russianDraughts',
  poolCheckers: 'poolCheckers',
  chineseCheckers: 'chineseCheckers',
  go: 'go'
}

What it prints (run when this page was built)

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