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

assignHandTilefunction

Give a hand tile its chosen reading, without changing which physical tile it is.

Import it

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

Definition

function assignHandTile(play: TilePlay, handAt: number, face: string): TilePlay

Parameters

NameTypeDescription
playTilePlay

The current immutable solo-game progress.

handAtnumber

The zero-based index of a tile in hand.

facestring

The visible reading to assign to a wild tile.

Returns

TilePlay

Give a hand tile its chosen reading, without changing which physical tile it is.

Examples

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

console.log(assignHandTile(deal("*atdog",3),0,"c").hand);
[ 'c', 'a', 't' ]

What it prints (run when this page was built)

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