TsumikiLeveltype
One graded level: its seed, goal and stones, and a line of moves the engine has been shown to win with.
Import it
import type { TsumikiLevel } from "@johnmorrisdotca/houseki/tsumiki";
Definition
interface TsumikiLevel {
readonly id: string;
readonly number: number;
readonly title: LocalizedText;
readonly seed: string;
readonly goal: ChallengeGoal;
readonly stones: readonly number[];
readonly witness: readonly (readonly [
number,
number,
number
])[];
readonly marks: 1 | 2 | 3 | 4 | 5;
}
Members
| Name | Type | Description |
|---|---|---|
id | string | |
number | number | |
title | LocalizedText | |
seed | string | |
goal | ChallengeGoal | |
stones | readonly number[] | |
witness | readonly (readonly [number, number, number])[] | The winning moves, each |
marks | 4 | 5 | 3 | 1 | 2 |
Examples
import { levelManifest } from "@johnmorrisdotca/houseki/tsumiki";
import type { TsumikiLevel } from "@johnmorrisdotca/houseki/tsumiki";
const value: TsumikiLevel = levelManifest[0]!;
console.log(value.number);1What it prints (run when this page was built)