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

handSpellingfunction

The hand with word's tiles first, in its order, and the rest after them as they were.

Import it

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

Definition

function handSpelling(play: TilePlay, word: string): TilePlay

Parameters

NameTypeDescription
playTilePlay

The current immutable solo-game progress.

wordstring

The encoded word to lay or spell.

Returns

TilePlay

The hand with word's tiles first, in its order, and the rest after them as they were.

Examples

import { deal, handSpelling } from "@johnmorrisdotca/kumimoji";

const tiles = new Map([["0,0","c"],["0,1","a"],["0,2","t"]]);
const play = deal("catdog",3);
console.log(handSpelling(play,"cat").tiles);
Map(0) {}

What it prints (run when this page was built)

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