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 · Browser table

BoardSquaretype

One square of the board drawn.

Import it

import type { BoardSquare } from "@johnmorrisdotca/kumimoji/ui";

Definition

type BoardSquare = {
    square: string;
    row: number;
    col: number;
    tile: string | null;
    glyph: string;
    wild: boolean;
    mark: TileMark | null;
};

Members

NameTypeDescription
squarestring

Its key, squareAt(row, col).

rownumber
colnumber
tilestring | null

The tile standing there, or null for an empty square.

glyphstring

What is printed on the tile; "" for an empty square.

wildboolean

Whether the tile is a wild.

markTileMark | null

How the tile stands; null for an empty square, or with no verdict.

Examples

import type { BoardSquare } from "@johnmorrisdotca/kumimoji/ui";

const value: BoardSquare = {square:"0,0",row:0,col:0,tile:"c",glyph:"c",wild:false,mark:null};
console.log(value);
{
  square: '0,0',
  row: 0,
  col: 0,
  tile: 'c',
  glyph: 'c',
  wild: false,
  mark: null
}

What it prints (run when this page was built)

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