Reference · Rules, solvers and generation
Reachtype
HOW FAR A FINGER IS FROM THE END OF THE LINE IT DRAWS, in rows and columns, once that line has been through a portal. The line comes out of a portal far from the finger that went into the other, so a finger over a cell draws toward that cell moved by the reach: it starts at none and is set again each time the line goes through a portal or back over one, so that the finger is over the line's end from then on, and moving it a cell moves the end a cell.
Import it
import type { Reach } from "@johnmorrisdotca/tsunagi";
Definition
type Reach = {
dr: number;
dc: number;
};
Members
| Name | Type | Description |
|---|---|---|
dr | number | |
dc | number |
Examples
import type { Reach } from "@johnmorrisdotca/tsunagi";
const value: Reach = {dr:0,dc:1};
console.log(value);{ dr: 0, dc: 1 }What it prints (run when this page was built)