本文へ移動

Tsunagi繋ぎ

同じ印の2つを別々の線で結び、盤を埋めます。収録された問題やシード付きの問題で遊べます。

「つなぎ」は、物をつなぐことを表す言葉です。 名前について(英語)

目次

リファレンス · ルール・解法・生成

tallHexagonBoard関数

リファレンスの説明と例は英語です。見出しと目次は日本語です。

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 { tallHexagonBoard } from "@johnmorrisdotca/tsunagi";

定義

function tallHexagonBoard(radius: number, extra: number): TsunagiBoard

引数

名前型説明
radiusnumber

The cells from the middle to the side.

extranumber

The rows added down the middle.

戻り値

TsunagiBoard

The board as a graph.

例

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

console.log(tallHexagonBoard(3,3).cells.length);
53

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/tsunagi 1.9.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。