createLessonfunction
Creates a fresh lesson game with its authored setup and queue.
Import it
import { createLesson } from "@johnmorrisdotca/houseki/magnetic-blocks";
Definition
function createLesson(id: string): GameState
Parameters
| Name | Type | Description |
|---|---|---|
id | string | A stable content id, or the one-based display number when numbers are accepted. |
Returns
GameState
Creates a fresh lesson game with its authored setup and queue.
Examples
import { createLesson, lessonManifest } from "@johnmorrisdotca/houseki/magnetic-blocks";
console.log(createLesson(lessonManifest[0].id).phase);fallingWhat it prints (run when this page was built)