Phasetype
The native falling, resolution, pause and ending phases.
Import it
import type { Phase } from "@johnmorrisdotca/houseki/falling-triplets";
Definition
type Phase = 'falling' | 'clear-mark' | 'clear-remove' | 'gravity' | 'paused' | 'won' | 'lost' | 'finished';
Examples
import { createGame } from "@johnmorrisdotca/houseki/falling-triplets";
import type { Phase } from "@johnmorrisdotca/houseki/falling-triplets";
const state=createGame({seed:"docs"});
const value: Phase = state.phase;
console.log(value == null ? value : typeof value === "object" ? Object.keys(value).slice(0,6) : value);fallingWhat it prints (run when this page was built)