Reference · Rules, tiles and records
Runtype
A run of tiles along one line: the word it spells and the squares it stands on, in reading order.
Import it
import type { Run } from "@johnmorrisdotca/kumimoji";
Definition
type Run = {
word: string;
squares: string[];
line: RunLine;
};
Members
| Name | Type | Description |
|---|---|---|
word | string | |
squares | string[] | |
line | RunLine |
Examples
import type { Run } from "@johnmorrisdotca/kumimoji";
const value: Run = {word:"cat",squares:["0,0","0,1","0,2"],line:"across"};
console.log(value);{ word: 'cat', squares: [ '0,0', '0,1', '0,2' ], line: 'across' }What it prints (run when this page was built)