AwaseOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What the options of a game say. Every field may be left out.
インポート
import type { AwaseOptions } from "@johnmorrisdotca/jarajara/awase";
定義
type AwaseOptions = {
challenge?: AwaseChallenge | null;
hints?: number | null;
shuffles?: number | null;
undo?: boolean;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
challenge (省略可) | "gold" | "spark" | "rush" | "fortune" | "sand" | "purge" | "blackout" | null | undefined | A challenge to play the deal as. Unless said, plain Awase. |
hints (省略可) | number | null | undefined | How many hints the game may use: a number, or |
shuffles (省略可) | number | null | undefined | How many shuffles: a number, or |
undo (省略可) | boolean | undefined | Whether a move may be taken back. Unless said, it may, unless the challenge forbids it. |
例
import type { AwaseOptions } from "@johnmorrisdotca/jarajara/awase";
const value: AwaseOptions = {challenge:"rush",hints:1,shuffles:1,undo:true};
console.log(value);{ challenge: 'rush', hints: 1, shuffles: 1, undo: true }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。