本文へ移動

Tsunagi繋ぎ

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

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

目次

リファレンス · 問題集の読み込み

TSUNAGI_LEVEL_COUNTS定数

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

How many levels each size has, read without loading the size. Sixteen blocks of sixteen (levelBlocks.ts); twelve at 4×4, where the generator runs out of distinct boards with one answer before two hundred; eight at 10×10 and 12×12 and four at 11×11, whose boards are slow to find and to prove on every build; eight at 13×13, 14×14 and 15×15, found and proved by a solver that learns from its dead ends (solveSat.ts); four at 20×20, 25×25 and 30×30, made by taking clues away (reduce.ts).

インポート

import { TSUNAGI_LEVEL_COUNTS } from "@johnmorrisdotca/tsunagi/levels";

ほかのエクスポート元: @johnmorrisdotca/tsunagi

定義

const TSUNAGI_LEVEL_COUNTS: Record<number, number> = { 4: 192, 5: 256, 6: 256, 7: 256, 8: 256, 9: 256, 10: 128, 11: 64, 12: 128, 13: 128, 14: 128, 15: 128, 20: 64, 25: 64, 30: 64 }

例

import { TSUNAGI_LEVEL_COUNTS } from "@johnmorrisdotca/tsunagi/levels";
console.log(TSUNAGI_LEVEL_COUNTS);
{
  '4': 192,
  '5': 256,
  '6': 256,
  '7': 256,
  '8': 256,
  '9': 256,
  '10': 128,
  '11': 64,
  '12': 128,
  '13': 128,
  '14': 128,
  '15': 128,
  '20': 64,
  '25': 64,
  '30': 64
}

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

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

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