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

groupsOffunction

The tiles in groups that touch across or down, largest first. With links — the diagonal runs a grid with Diagonals reads — the tiles next to each other in one of those runs are joined too: a diagonal word holds a crossword together as a word across does. A pair touching at a corner is never a link, because it is never read.

Import it

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

Definition

function groupsOf(tiles: Tiles, links?: readonly Run[]): string[][]

Parameters

NameTypeDescription
tilesTiles

The map from row,column square names to internal tile codes.

links (optional)readonly Run[]

The runs connecting groups; computed from the grid when omitted.

Returns

string[][]

The tiles in groups that touch across or down, largest first. With links — the diagonal runs a grid with Diagonals reads — the tiles next to each other in one of those runs are joined too: a diagonal word holds a crossword together as a word across does. A pair touching at a corner is never a link, because it is never read.

Examples

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

const tiles = new Map([["0,0","c"],["0,1","a"],["0,2","t"]]);
console.log(groupsOf(tiles));
[ [ '0,0', '0,1', '0,2' ] ]

What it prints (run when this page was built)

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