Maze R Full 2021
Identify exactly which variables are consuming the most space in your current session.
The helper function get_unvisited_neighbours() returns a list of potential moves from the current cell. It checks up, down, left, and right, but only returns cells that haven’t been visited yet. This ensures the algorithm never carves into the same cell twice, which is what guarantees the final structure is a perfect maze. maze r full
neighbours <- get_unvisited_neighbours(curr_row, curr_col) Identify exactly which variables are consuming the most