Code and Data




Maze Toolbox





Files: maze.zip
Description: A simple toolbox to create, save, load and draw mazes in MATLAB.
Author: Jeremy Kubica
Language: Matlab
Usage: To install, create a directory "maze" in the /matlabl/toolbox/ directory and add this new directory to the your matlab path. Type "help maze" for information about the functions.

Included functions:
  • Movement Functions:
    • maze_XY_from_index - Gets the X and Y coordinates of the location at index.
    • maze_index_from_XY - Gets the index from the X and Y coordinates.
    • is_move_valid - Checks the validity and determines the result of a move.
  • Maze generation and modification functions:
    • generate_maze - Generates a valid (single unique solution) maze.
    • click_change_maz - Allows interactive maze creation/modification.
    • create_blank_maze - Creates a "blank" maze.
  • Display Functions:
    • draw_maze - Displays the maze.
  • File IO Functions:
    • load_maze - Loads a maze file into Matlab.
    • save_maze - Saves a maze file.
Additional Notes: n/a
Last Update: 01-29-2003





Return to the code page.