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 · Colour Chains

NatureChainCampaignLeveltype

One authored native challenge with its stable id, setup, winning witness, measurements and review status.

Import it

import type { NatureChainCampaignLevel } from "@johnmorrisdotca/houseki/colour-chains";

Definition

interface NatureChainCampaignLevel extends ChainCampaignLevel {
    readonly objective: LocalizedText;
    readonly nature: true;
    readonly weather?: 'frequent';
    readonly magneticQueue?: readonly (readonly [
        boolean,
        boolean
    ])[];
    readonly weatherTrace?: readonly Readonly<Record<string, unknown>>[];
}

Members

NameTypeDescription
objectiveLocalizedText
naturetrue
weather (optional)"frequent" | undefined
magneticQueue (optional)readonly (readonly [boolean, boolean])[] | undefined
weatherTrace (optional)readonly Readonly<Record<string, unknown>>[] | undefined
idstring
numbernumber
titleLocalizedText
canonicalKeyHashstring
widthnumber
heightnumber
colourCount4 | 5 | 6
seedstring
boardreadonly (Gem | null)[]
queuereadonly (readonly [Colour, Colour])[]
goalChallengeGoal
witnessreadonly WitnessStep[]
tagsreadonly string[]
rawMetricsChainDifficultyMetrics
scorenumber
marks2 | 4 | 5 | 3 | 1
gradingVersionstring
proofStatus"engine-witness-verified"
reviewStatus"human-review-pending" | "human-reviewed"
band (optional)"entry" | "easy" | "intermediate" | "hard" | "expert" | undefined
rawDifficultyScore (optional)number | undefined
normalizationCategory (optional)string | undefined

Examples

import type { NatureChainCampaignLevel } from "@johnmorrisdotca/houseki/colour-chains";
import { shizenLevelManifest } from "@johnmorrisdotca/houseki/colour-chains";

const value: NatureChainCampaignLevel = shizenLevelManifest[0];
console.log(value == null ? value : typeof value === "object" ? Object.keys(value).slice(0,6) : value);
[ 'id', 'number', 'title', 'objective', 'canonicalKeyHash', 'width' ]

What it prints (run when this page was built)

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