No BSD License  

Highlights from
Maze

4.33333

4.3 | 3 ratings Rate this file 3 Downloads (last 30 days) File Size: 3.17 KB File ID: #6705
image thumbnail

Maze

by Rodney Meyer

 

10 Jan 2005 (Updated 11 Jan 2005)

Creates a maze and measures a player's completion time.

| Watch this File

File Information
Description

usage thyme = maze(30,45,'c');

 row - number of rows in the maze
 col - number of column in the maze
 pattern - random(r), vertical(v), horizontal(h), checkerboard(c), spiral(s), burst(b)

Construct graph system for maze. The graph entities are an id for each intersection(id), the physical row(rr) and column(cc) of the intersection, membership to a connected region (state), and a link to adjacent intersections(ptr_up ptr_down ptr_left ptr_right). Prior to "make_pattern" the maze has all of the walls intact and there are row*col of unconnected states. After "make_pattern" some of the
walls are broken down and there is only one connected state for the maze. A broken wall(allowed passage) in some direction is signified by a negative value of the pointer in that direction. A solid wall(unallowed passage) in some direction is signified by a positive value of the pointer in that direction. The absolute value of the pointer is the id of the intersection in that direction.

MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
07 Feb 2005 Fahad Al Mahmood

Very cute game!

12 Dec 2005 Peter Krug

Nice, but too simple.

09 Jan 2007 Zacharias Voulgaris

Beautifully made and simple enough to be bug-free.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
games Rodney Meyer 22 Oct 2008 07:39:26
game maze Rodney Meyer 22 Oct 2008 07:39:26
completion time Rodney Meyer 22 Oct 2008 07:39:26
creates maze Rodney Meyer 22 Oct 2008 07:39:26

Contact us at files@mathworks.com