MeikyuuEventDetailtype
What every event tells of the board.
Import it
import type { MeikyuuEventDetail } from "@johnmorrisdotca/meikyuu/play";
Definition
type MeikyuuEventDetail = {
kind: MeikyuuKind;
level: number | null;
moves: number;
cells: number;
keys: number;
keysOf: number;
hearts: number | null;
arrowsLeft: number | null;
solved: boolean;
orientation: "portrait" | "landscape" | null;
turned: boolean;
stones: number;
stonesLeft: number | null;
};
Members
| Name | Type | Description |
|---|---|---|
kind | "maze" | "arrows" | "mixed" | |
level | number | null | The level's number in its list, when it is one of the package's. |
moves | number | Strokes drawn (mazes) or arrows tapped (arrow puzzles). |
cells | number | Cells in the line now. |
keys | number | |
keysOf | number | |
hearts | number | null | Hearts left, for arrow puzzles. |
arrowsLeft | number | null | |
solved | boolean | |
orientation | "portrait" | "landscape" | null | How a maze is shown now ( |
turned | boolean | Whether the maze is shown turned from how it was made. |
stones | number | Stones laid now (0 for a board with none). |
stonesLeft | number | null | Stones that can still be laid: null for no limit, 0 for a board with no stones. |
Examples
import type { MeikyuuEventDetail } from "@johnmorrisdotca/meikyuu/play";
import { arrowsLeft, stonesLeft } from "@johnmorrisdotca/meikyuu";
const value: MeikyuuEventDetail = {kind:"maze",level:null,moves:0,cells:0,keys:0,keysOf:0,hearts:null,arrowsLeft:null,solved:false,orientation:"landscape",turned:false,stones:0,stonesLeft:null};
console.log(value);{
kind: 'maze',
level: null,
moves: 0,
cells: 0,
keys: 0,
keysOf: 0,
hearts: null,
arrowsLeft: null,
solved: false,
orientation: 'landscape',
turned: false,
stones: 0,
stonesLeft: null
}What it prints (run when this page was built)