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

placeFromHandfunction

A tile from the hand onto an empty square.

Import it

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

Definition

function placeFromHand(play: TilePlay, handAt: number, square: string): TilePlay

Parameters

NameTypeDescription
playTilePlay

The current immutable solo-game progress.

handAtnumber

The zero-based index of a tile in hand.

squarestring

The row,column square name.

Returns

TilePlay

A tile from the hand onto an empty square.

Examples

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

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

What it prints (run when this page was built)

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