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);この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。