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

unpackLengthfunction

Front-coded words of one length read back (see scripts/tile-words.mjs): a shared-prefix character, then the rest.

Import it

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

Definition

function unpackLength(packed: string, length: number): string[]

Parameters

NameTypeDescription
packedstring

The front-coded words of one fixed length.

lengthnumber

The game length or decoded word length, as declared.

Returns

string[]

Front-coded words of one length read back (see scripts/tile-words.mjs): a shared-prefix character, then the rest.

Examples

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

console.log(unpackLength("0cat2r",3));
[ 'cat', 'car' ]

What it prints (run when this page was built)

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