Skip to the content

Kumimoji組み文字

Build crosswords from seeded English or Japanese tile bags, alone or at a shared table.

Kumimoji means assembled characters in Japanese. About the name

Contents

Reference · Rules, tiles and records

lengthRowsfunction

For one opening hand, each length of game: how many tiles it deals, from one set and from two, and how many are wild at each level.

Import it

import { lengthRows } from "@johnmorrisdotca/kumimoji";

Definition

function lengthRows(hand?: number): LengthRow[]

Parameters

NameTypeDescription
hand (optional)number

The hand size or tile codes, as declared by the function signature.

Returns

LengthRow[]

For one opening hand, each length of game: how many tiles it deals, from one set and from two, and how many are wild at each level.

Examples

import { lengthRows } from "@johnmorrisdotca/kumimoji";

console.log(lengthRows(7));
[
  {
    length: 'short',
    tiles: 40,
    doubleTiles: 80,
    wilds: { easy: 6, medium: 3, hard: 0 }
  },
  {
    length: 'medium',
    tiles: 72,
    doubleTiles: 144,
    wilds: { easy: 11, medium: 5, hard: 0 }
  },
  {
    length: 'full',
    tiles: 144,
    doubleTiles: 288,
    wilds: { easy: 22, medium: 11, hard: 0 }
  }
]

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kumimoji 1.6.0.