levelSolutionfunction
The pieces of a row's answer, each facing as the answer has it; null for a row that is not a board and its turns.
Import it
import { levelSolution } from "@johnmorrisdotca/suido/levels";
Also exported from: @johnmorrisdotca/suido/levels-info
Definition
function levelSolution(row: LevelRow): number[] | null
Parameters
| Name | Type | Description |
|---|---|---|
row | LevelRow | The board code, quarter-turn digits and declared twists of one shipped level. |
Returns
number[] | null
The pieces of a row's answer, each facing as the answer has it; null for a row that is not a board and its turns.
Examples
import { SUIDO_5X5 } from "@johnmorrisdotca/suido/levels-5x5";
import { levelSolution } from "@johnmorrisdotca/suido/levels";
const row = SUIDO_5X5[0];
console.log(levelSolution(row)?.length);25What it prints (run when this page was built)