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

drawfunction

The next tile or tiles out of the bag into the hand.

Import it

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

Definition

function draw(play: TilePlay, count?: number): TilePlay

Parameters

NameTypeDescription
playTilePlay

The current immutable solo-game progress.

count (optional)number

The number of tiles to draw.

Returns

TilePlay

The next tile or tiles out of the bag into the hand.

Examples

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

const play = deal("catdog",3);
console.log(draw(play,1).hand);
[ 'c', 'a', 't', 'd' ]

What it prints (run when this page was built)

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