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

encodeGridfunction

A grid as a string, drawn from its own top-left tile: cat/2o/2w. decodeGrid reads it back.

Import it

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

Definition

function encodeGrid(tiles: Tiles): string

Parameters

NameTypeDescription
tilesTiles

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

Returns

string

A grid as a string, drawn from its own top-left tile: cat/2o/2w. decodeGrid reads it back.

Examples

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

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

What it prints (run when this page was built)

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