AwaseOptionstype
What the options of a game say. Every field may be left out.
Import it
import type { AwaseOptions } from "@johnmorrisdotca/jarajara/awase";
Definition
type AwaseOptions = {
challenge?: AwaseChallenge | null;
hints?: number | null;
shuffles?: number | null;
undo?: boolean;
};
Members
| Name | Type | Description |
|---|---|---|
challenge (optional) | "gold" | "spark" | "rush" | "fortune" | "sand" | "purge" | "blackout" | null | undefined | A challenge to play the deal as. Unless said, plain Awase. |
hints (optional) | number | null | undefined | How many hints the game may use: a number, or |
shuffles (optional) | number | null | undefined | How many shuffles: a number, or |
undo (optional) | boolean | undefined | Whether a move may be taken back. Unless said, it may, unless the challenge forbids it. |
Examples
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 }What it prints (run when this page was built)