Skip to content

Instantly share code, notes, and snippets.

View ferndot's full-sized avatar

Fern (they/them) ferndot

  • Seattle, WA, USA
  • 03:56 (UTC -07:00)
View GitHub Profile
function allMaze(x, y, maze) {
let validPaths = []
if (y < 0 || x < 0 || y > maze.length - 1 || x > maze[y].length - 1) {
return false
} else if (maze[y][x] === "e") {
return ['']
} else if (maze[y][x] == "*") {
return false
}