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
引数
| 名前 | 型 | 説明 |
|---|---|---|
size | number | The number of cells on each side of the board. |
random | Random | 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}));この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。