Reference · Mazes, arrows and mixed boards
ARROW_STEPSconstant
The up, right, down and left row/column increments of arrow directions.
Import it
import { ARROW_STEPS } from "@johnmorrisdotca/meikyuu";
Definition
const ARROW_STEPS: readonly (readonly [number, number])[] = [[0, -1], [1, 0], [0, 1], [-1, 0]]
Examples
import { ARROW_STEPS } from "@johnmorrisdotca/meikyuu";
console.log(ARROW_STEPS);[ [ 0, -1 ], [ 1, 0 ], [ 0, 1 ], [ -1, 0 ] ]What it prints (run when this page was built)