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 · Gem Swap

GRADING_WEIGHTSconstant

The bounded Gem Swap metric weights used in the recorded grading formula.

Import it

import { GRADING_WEIGHTS } from "@johnmorrisdotca/houseki/gem-swap";

Definition

const GRADING_WEIGHTS: { seededPlayoutDifficulty: number; choiceDifficulty: number; objectiveCoordination: number; chainDepth: number; witnessLength: number; specialCombination: number; } = freezeContent({ "seededPlayoutDifficulty": 30, "choiceDifficulty": 18, "objectiveCoordination": 12, "chainDepth": 10, "witnessLength": 25, "specialCombination": 5 })

Examples

import { GRADING_WEIGHTS } from "@johnmorrisdotca/houseki/gem-swap";

console.log(Object.keys(GRADING_WEIGHTS));
[
  'seededPlayoutDifficulty',
  'choiceDifficulty',
  'objectiveCoordination',
  'chainDepth',
  'witnessLength',
  'specialCombination'
]

What it prints (run when this page was built)

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