createTutorialfunction
Makes a lesson's game; throws for a lesson that does not exist.
Import it
import { createTutorial } from "@johnmorrisdotca/houseki/tsumiki";
Definition
function createTutorial(id: string): GameState
Parameters
| Name | Type | Description |
|---|---|---|
id | string | A lesson's id. |
Returns
GameState
A new game of that lesson. Throws where there is no such lesson.
Examples
import { createTutorial } from "@johnmorrisdotca/houseki/tsumiki";
console.log(createTutorial("first-line").settings.mode);challengeWhat it prints (run when this page was built)