本文へ移動

Suido水道

管を回してポンプと排水口をつなぎます。収録された問題やシード付きの問題で遊べます。

「水道」は、水を届ける設備を表す言葉です。 名前について(英語)

目次

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

makeSuido関数

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

Makes a board with exactly one answer and says how hard it is. With a difficulty asked for it makes boards (each its own seed, the first the seed given) until one is within tolerance of it, or attempts have been made, and gives the nearest. The board's seed is the one that made it, so makeSuido({ ...options, seed: made.seed }) makes it again.

インポート

import { makeSuido } from "@johnmorrisdotca/suido";

定義

function makeSuido(options?: MakeOptions): MadeScored

引数

名前型説明
options (省略可)MakeOptions

Drawing, mounting or generator choices specified by the signature.

戻り値

MadeScored

Makes a board with exactly one answer and says how hard it is. With a difficulty asked for it makes boards (each its own seed, the first the seed given) until one is within tolerance of it, or attempts have been made, and gives the nearest. The board's seed is the one that made it, so makeSuido({ ...options, seed: made.seed }) makes it again.

例

import { makeSuido } from "@johnmorrisdotca/suido";

console.log(makeSuido({size:5,seed:42,difficulty:50,attempts:3}).difficulty);

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

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