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

kumimojiWildCountfunction

Wilds scale with the bag; doubling the tile set doubles the wild count too.

Import it

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

Definition

function kumimojiWildCount(hand: number, level: "easy" | "medium" | "hard", totalTiles: number): number

Parameters

NameTypeDescription
handnumber

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

level"easy" | "medium" | "hard"

The difficulty that determines the wildcard allowance.

totalTilesnumber

The total number of physical tiles in this bag.

Returns

number

Wilds scale with the bag; doubling the tile set doubles the wild count too.

Examples

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

console.log(kumimojiWildCount(7,"easy",kumimojiTileCount(7,"short")));
6

What it prints (run when this page was built)

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