levelAnswerfunction
A row's answer as a code, the board's own code with every piece facing as the answer has it: what checkSuidoAnswer is given. Null for a row that is not a board and its turns.
Import it
import { levelAnswer } from "@johnmorrisdotca/suido/levels";
Also exported from: @johnmorrisdotca/suido/levels-info
Definition
function levelAnswer(row: LevelRow): string | null
Parameters
| Name | Type | Description |
|---|---|---|
row | LevelRow | The board code, quarter-turn digits and declared twists of one shipped level. |
Returns
string | null
A row's answer as a code, the board's own code with every piece facing as the answer has it: what checkSuidoAnswer is given. null for a row that is not a board and its turns.
Examples
import { SUIDO_5X5 } from "@johnmorrisdotca/suido/levels-5x5";
import { levelAnswer } from "@johnmorrisdotca/suido/levels";
const row = SUIDO_5X5[0];
console.log(levelAnswer(row));5x5:maaaI5CacE7eafd53IB53aaIBWhat it prints (run when this page was built)