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

kumimojiTileCountfunction

Tile count for a selected length and inventory size. Double supplies two sets.

Import it

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

Definition

function kumimojiTileCount(hand: number, length: KumimojiLength, setSize?: number, doubleSet?: boolean): number

Parameters

NameTypeDescription
handnumber

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

lengthKumimojiLength

The game length or decoded word length, as declared.

setSize (optional)number

The number of physical tiles in the language set.

doubleSet (optional)boolean

Whether to use two English tile sets.

Returns

number

Tile count for a selected length and inventory size. Double supplies two sets.

Examples

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

console.log(kumimojiTileCount(7,"short"));
40

What it prints (run when this page was built)

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