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 · SVG board

TsunagiBoardLooktype

What a board is made of: every part a CSS colour.

Import it

import type { TsunagiBoardLook } from "@johnmorrisdotca/tsunagi/draw";

Definition

type TsunagiBoardLook = {
    paper: string | readonly [
        string,
        string
    ];
    frame: string;
    grid: string;
    ink: string;
    coordinate: string;
};

Members

NameTypeDescription
paperstring | readonly [string, string]

The playing surface: one colour, or two, a light and a deep one, laid as a soft gradient.

framestring

The frame round the surface.

gridstring

The rules between cells, and the dashed rim of a board that wraps.

inkstring

Walls, blocked cells and a bridge's rails.

coordinatestring

The letters and numbers down the sides, where they are drawn.

Examples

import type { TsunagiBoardLook } from "@johnmorrisdotca/tsunagi/draw";
import { tsunagiBoardLook } from "@johnmorrisdotca/tsunagi/draw";

const value: TsunagiBoardLook = tsunagiBoardLook("paper");
console.log(value);
{
  paper: '#fbf8f1',
  frame: '#a98954',
  grid: '#cfc6b2',
  ink: '#1f2320',
  coordinate: '#7c5a30'
}

What it prints (run when this page was built)

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