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 · Magnetic Blocks

MagneticCampaignManifesttype

The ordered native campaign, its generation/grading revisions, checksum and measured levels.

Import it

import type { MagneticCampaignManifest } from "@johnmorrisdotca/houseki/magnetic-blocks";

Definition

interface MagneticCampaignManifest {
    readonly count: number;
    readonly currentCount?: number;
    readonly candidateCount: number;
    readonly generationRevision: string;
    readonly gradingVersion: string;
    readonly difficultyFormula: string;
    readonly normalization: string;
    readonly marksFormula: string;
    readonly checksum: string;
    readonly orderingPolicy: string;
    readonly levels: readonly MagneticCampaignLevel[];
    readonly bands?: readonly {
        readonly id: MagneticDifficultyBand;
        readonly count: number;
        readonly first: number;
        readonly last: number;
    }[];
}

Members

NameTypeDescription
countnumber
currentCount (optional)number | undefined
candidateCountnumber
generationRevisionstring
gradingVersionstring
difficultyFormulastring
normalizationstring
marksFormulastring
checksumstring
orderingPolicystring
levelsreadonly MagneticCampaignLevel[]
bands (optional)readonly { readonly id: MagneticDifficultyBand; readonly count: number; readonly first: number; readonly last: number; }[] | undefined

Examples

import type { MagneticCampaignManifest } from "@johnmorrisdotca/houseki/magnetic-blocks";
import { campaignManifest } from "@johnmorrisdotca/houseki/magnetic-blocks";

const value: MagneticCampaignManifest = campaignManifest;
console.log(value == null ? value : typeof value === "object" ? Object.keys(value).slice(0,6) : value);
[
  'count',
  'currentCount',
  'candidateCount',
  'generationRevision',
  'gradingVersion',
  'difficultyFormula'
]

What it prints (run when this page was built)

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