本文へ移動

Tsunagi繋ぎ

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

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

目次

リファレンス · 解答なしの盤

TSUNAGI_LAYOUTS定数

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

EVERY LEVEL'S BOARD WITHOUT ITS ANSWER, by size and in level order: what a server needs to know a level when it checks a solve or lists who solved which level. @johnmorrisdotca/tsunagi/layouts.

WRITTEN BY node scripts/tsunagi-layouts.ts, NEVER BY HAND, from the level files; layouts.test.ts fails when it is not what they say.

インポート

import { TSUNAGI_LAYOUTS } from "@johnmorrisdotca/tsunagi/layouts";

定義

const TSUNAGI_LAYOUTS: Readonly<Record<number, readonly string[]>>

例

import { TSUNAGI_LAYOUTS } from "@johnmorrisdotca/tsunagi/layouts";
console.log(Object.keys(TSUNAGI_LAYOUTS));
[
  '4',  '5',  '6',  '7',
  '8',  '9',  '10', '11',
  '12', '13', '14', '15',
  '20', '25', '30'
]

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

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

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