DIFFICULTY_WEIGHTS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What each term is weighed by in the score; they add to 1.
インポート
import { DIFFICULTY_WEIGHTS } from "@johnmorrisdotca/meikyuu";
定義
const DIFFICULTY_WEIGHTS: { readonly reach: 0.4; readonly forks: 0.15; readonly traps: 0.15; readonly waste: 0.15; readonly depth: 0.075; readonly turns: 0.075; } = { reach: 0.4, forks: 0.15, traps: 0.15, waste: 0.15, depth: 0.075, turns: 0.075 } as const
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
reach | 0.4 | |
forks | 0.15 | |
traps | 0.15 | |
waste | 0.15 | |
depth | 0.075 | |
turns | 0.075 |
例
import { DIFFICULTY_WEIGHTS } from "@johnmorrisdotca/meikyuu";
console.log(DIFFICULTY_WEIGHTS);{
reach: 0.4,
forks: 0.15,
traps: 0.15,
waste: 0.15,
depth: 0.075,
turns: 0.075
}出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。