| Variable | Value |
|---|---|
| $ratRow | 0 |
| $ratCol | 0 |
| $action | "init" |
A classic backtracking problem where a rat must find a path from the top-left to the bottom-right corner of a maze, exploring all possible routes.
The maze is an NรN grid. Each cell is either open (passable) or a wall (blocked). The rat starts at (0,0) and must reach (N-1,N-1). Walls are generated randomly but the maze is always guaranteed to have at least one solution.