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

arrowStepfunction

The step in the grid an arrow key means: the square that way on the screen, with the table turned. Null for any other key.

Import it

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

Definition

function arrowStep(key: string, turn: Turn): { row: number; col: number; } | null

Parameters

NameTypeDescription
keystring

The keyboard key identifier.

turnTurn

The number of quarter turns of the view.

Returns

{ row: number; col: number; } | null

The step in the grid an arrow key means: the square that way on the screen, with the table turned. null for any other key.

Examples

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

console.log(arrowStep("ArrowRight",1));
{ row: -1, col: 0 }

What it prints (run when this page was built)

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