Reference · Pipes, rules and solving
SIDE_STEPSconstant
The step across each side, as columns and rows.
Import it
import { SIDE_STEPS } from "@johnmorrisdotca/suido";
Definition
const SIDE_STEPS: readonly [readonly [0, -1], readonly [1, 0], readonly [0, 1], readonly [-1, 0]] = [
[0, -1],
[1, 0],
[0, 1],
[-1, 0],
] as const
Examples
import { SIDE_STEPS } from "@johnmorrisdotca/suido";
console.log(SIDE_STEPS);[ [ 0, -1 ], [ 1, 0 ], [ 0, 1 ], [ -1, 0 ] ]What it prints (run when this page was built)