Reference · Shizen and Arashi environments
MarkingOptionstype
The probability and optional count/anchor bounds used to mark magnetic stones.
Import it
import type { MarkingOptions } from "@johnmorrisdotca/houseki/nature";
Definition
interface MarkingOptions {
readonly probability: number;
readonly maximum?: number;
readonly anchoredProbability?: number;
}
Members
| Name | Type | Description |
|---|---|---|
probability | number | |
maximum (optional) | number | undefined | |
anchoredProbability (optional) | number | undefined |
Examples
import type { MarkingOptions } from "@johnmorrisdotca/houseki/nature";
const value: MarkingOptions = {probability:0.25,maximum:2};
console.log(value == null ? value : typeof value === "object" ? Object.keys(value).slice(0,6) : value);[ 'probability', 'maximum' ]What it prints (run when this page was built)