本文へ移動

Tsunagi繋ぎ

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

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

目次

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

reducedCandidate関数

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

One board made by taking clues away, or null. The filling's lines are cut into pieces of about piece cells and joined again at random while one answer can be proved within budget dead ends; see the top of this file.

インポート

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

定義

function reducedCandidate(size: number, random: Random, options?: ReduceOptions): ReducedCandidate | null

引数

名前型説明
sizenumber

The number of cells on each side of the board.

randomRandom

A reproducible random source returning values in [0,1).

options (省略可)ReduceOptions

Native drawing, geometry, game or mount settings.

戻り値

ReducedCandidate | null

One board made by taking clues away, or null. The filling's lines are cut into pieces of about piece cells and joined again at random while one answer can be proved within budget dead ends; see the top of this file.

例

import { reducedCandidate, seededRandom } from "@johnmorrisdotca/tsunagi";

console.log(reducedCandidate(4,seededRandom(42),{budget:20000,longest:8,most:8}));

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

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