Skip to the content

Houseki宝石

Run five native gem and stone engines, play measured challenges and lessons, and save deterministic games.

Houseki (宝石) is Japanese for a gem or precious stone. About the name

Contents

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

NameTypeDescription
probabilitynumber
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)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/houseki 0.4.2.