Reference · Rules, solvers and generation
oblongBoardfunction
A board wide by tall, written in a square of the longer side with the rest off the board. A square one is squareBoard.
Import it
import { oblongBoard } from "@johnmorrisdotca/tsunagi";
Definition
function oblongBoard(wide: number, tall: number, more?: { blocked?: ReadonlySet<number>; }): TsunagiBoard
Parameters
| Name | Type | Description |
|---|---|---|
wide | number | The cells across. |
tall | number | The cells down. |
more (optional) | { blocked?: ReadonlySet<number>; } | The cells no line enters. |
Returns
TsunagiBoard
The board as a graph.
Examples
import { oblongBoard } from "@johnmorrisdotca/tsunagi";
console.log(oblongBoard(4,6).cells.length);24What it prints (run when this page was built)