I’m having some trouble understanding what this part of the gridmancer example code does
var occupied = grid[y][x].length > 0;
What does the length signify? Why would it be longer than 0 if it’s occupied?
Any available documentation on grid, or advice on how to tell if a coordinate is a wall would be greatly appreciated.