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

TABLEconstant

HOW THE TABLE IS LOOKED AT: which squares are shown, how big a tile is drawn and where. Pure, and apart from the game (play.ts): the tiles are where the player put them whatever the view, and a view is a function of the tiles, the screen and the player's own zooming and panning.

John, 2026-09-26: no board — "literally there is no board in the real world game." The table shown is the tiles' own extent plus a margin all round, so there is always room to build outward, and it zooms to fit the crossword: big tiles for a first word, smaller as the grid spreads, never smaller than a thumb can press (TABLE.tileLeast). Past that the table pans instead.

Import it

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

Definition

const TABLE: { readonly margin: 2; readonly tileLeast: 32; readonly zoomLeast: 12; readonly tileMost: 56; readonly growsFrom: 544; readonly zoomMost: 88; readonly edge: 36; readonly edgeStep: 8; readonly edgeDwellMs: 350; } = {
    margin: 2,
    tileLeast: 32,
    zoomLeast: 12,
    tileMost: 56,
    growsFrom: 544,
    zoomMost: 88,
    edge: 36,
    edgeStep: 8,
    edgeDwellMs: 350,
} as const

Members

NameTypeDescription
margin2

Empty squares shown beyond the tiles on every side.

tileLeast32

The smallest a tile is drawn, in CSS pixels: a comfortable thumb.

zoomLeast12

The smallest a player may zoom a tile to by hand, to see a big crossword whole: too small to press, and not meant to be (John, 2026-09-28: "I would like to zoom out even further"). Fit never goes below tileLeast.

tileMost56

The largest a fitted tile is drawn: a first word does not fill a desk.

growsFrom544

The shorter side of a table past which tileMost grows with it (fittedMost): the Regular desk table's height, 34rem. No phone's or tablet's table is taller or wider across its shorter side, so none changes; only a table the player made bigger with the board size chooser (BoardScale) grows its squares, in proportion to the table everybody had.

zoomMost88

The largest a player may zoom a tile to by hand.

edge36

How near an edge of the table a dragged tile starts it panning, and how fast, in pixels a frame.

edgeStep8
edgeDwellMs350

How long a dragged tile must stay near an edge before the table pans: crossing an edge on the way in is not asking to pan.

Examples

import { TABLE } from "@johnmorrisdotca/kumimoji";
console.log(TABLE);
{
  margin: 2,
  tileLeast: 32,
  zoomLeast: 12,
  tileMost: 56,
  growsFrom: 544,
  zoomMost: 88,
  edge: 36,
  edgeStep: 8,
  edgeDwellMs: 350
}

What it prints (run when this page was built)

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