UNPKG

@thewizardbear/maze_generator

Version:

A deno-compatible package for maze generation

26 lines (25 loc) 317 B
export const dx = { E: 1, W: -1, N: 0, S: 0, }, dy = { E: 0, W: 0, N: -1, S: 1, }, opposite = { E: "W", W: "E", N: "S", S: "N", }, directions = ["N", "S", "E", "W"], fullNames = { "N": "North", "S": "South", "E": "East", "W": "West", };