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

turnAreafunction

The squares a turned table shows: the grid's area, turned.

Import it

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

Definition

function turnArea(area: Area, turn: Turn): Area

Parameters

NameTypeDescription
areaArea

The occupied table bounds.

turnTurn

The number of quarter turns of the view.

Returns

Area

The squares a turned table shows: the grid's area, turned.

Examples

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

const area = {top:0,left:0,rows:1,cols:3};
console.log(turnArea(area,1));
{ top: 0, left: 0, rows: 3, cols: 1 }

What it prints (run when this page was built)

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