Reference · Rules, solvers and generation
stoneLettersfunction
The characters that name pairs in a layout's cells: the first thirty-six (capitals and digits), or all eighty-two where the board uses every one of the thirty-six, which is when its small letters are stones and not waypoints.
Import it
import { stoneLetters } from "@johnmorrisdotca/tsunagi";
Definition
function stoneLetters(cells: string): string
Parameters
| Name | Type | Description |
|---|---|---|
cells | string | The row-major decoded cell values. |
Returns
string
The characters that name pairs in a layout's cells: the first thirty-six (capitals and digits), or all eighty-two where the board uses every one of the thirty-six, which is when its small letters are stones and not waypoints.
Examples
import { TSUNAGI_4 } from "@johnmorrisdotca/tsunagi/levels-4";
import { stoneLetters } from "@johnmorrisdotca/tsunagi";
const givens = TSUNAGI_4[0][0];
console.log(stoneLetters(givens));ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789What it prints (run when this page was built)