This simple submission is surprisingly effective at providing hours of diversion. From the command line, you call the maze function with arguments specifying dimensions and the maze pattern. The pattern (which can be horizontal, vertical, , checkerboard, spiral, burst, or random) influences the layout of a two-dimensional maze. A red diamond represents your pencil. You use the arrow keys to move your cursor through the maze from the upper left to bottom right. A timer lets you know how long it takes to complete the maze.
To leave a comment, please click here to sign in to your MathWorks Account or create a new one.