Reference · Boards, rules and challenges
generateTobiishiChallengefunction
Creates one fixed-goal puzzle with a complete, replayable legal answer.
Import it
import { generateTobiishiChallenge } from "@johnmorrisdotca/tobiishi";
Definition
function generateTobiishiChallenge(packKey: Shape, goalId: string, difficulty: ChallengeDifficulty): GoalChallenge
Parameters
| Name | Type | Description |
|---|---|---|
packKey | Shape | A supported native board/pack key. |
goalId | string | One of this pack’s named goal identifiers. |
difficulty | ChallengeDifficulty | The requested easy, medium or hard witness-length category. |
Returns
GoalChallenge
Creates one fixed-goal puzzle with a complete, replayable legal answer.
Examples
import { generateTobiishiChallenge } from "@johnmorrisdotca/tobiishi";
console.log(generateTobiishiChallenge("english","centre","easy").answer.length);3What it prints (run when this page was built)