Skip to the content

Tsunagi繋ぎ

Join each pair with a separate line and fill the board, through fixed levels or seeded puzzles.

Tsunagi means joining in Japanese. About the name

Contents

Reference · Rules, solvers and generation

hexagonBoardfunction

A hexagon of hexagons of this radius, as the levels' hexagons are: side 2R + 1.

Import it

import { hexagonBoard } from "@johnmorrisdotca/tsunagi";

Definition

function hexagonBoard(radius: number): TsunagiBoard

Parameters

NameTypeDescription
radiusnumber

The cells from the middle to an edge.

Returns

TsunagiBoard

The board as a graph.

Examples

import { hexagonBoard } from "@johnmorrisdotca/tsunagi";

console.log(hexagonBoard(3).cells.length);
37

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/tsunagi 1.9.0.