Reference · Rules, solvers and generation
tallHexagonBoardfunction
A honeycomb a little taller than it is wide, for a phone held upright (John, 2026-10-01: "slightly vertical maps for
the hex"): a hexagon of radius whose widest rows are repeated extra more times down the middle, each row sitting
half a cell along from the last, so the sides run straight down. With no extra rows it is the hexagon itself.
Import it
import { tallHexagonBoard } from "@johnmorrisdotca/tsunagi";
Definition
function tallHexagonBoard(radius: number, extra: number): TsunagiBoard
Parameters
| Name | Type | Description |
|---|---|---|
radius | number | The cells from the middle to the side. |
extra | number | The rows added down the middle. |
Returns
TsunagiBoard
The board as a graph.
Examples
import { tallHexagonBoard } from "@johnmorrisdotca/tsunagi";
console.log(tallHexagonBoard(3,3).cells.length);53What it prints (run when this page was built)