+/EE312
software design
git clone https://git.julia.blue/+/EE312
884d021
master
1#ifndef _MazeParams_h 2#define _MazeParams_h 1 3 4/* the real "maze" is a 2D array of squares. 5* each square can have a wall to either side (right or left) 6* or to the top and bottom. To represent this in a matrix, we're 7* alternating rows and columns. For example, the border of the maze 8* is all walls (except for the entrance and exit). 9* then, each alternating row is used for either squares of the 10* real maze, or walls. Some walls will be removed to allow passage 11* between the squares. Some walls will be left standing (wouldn't be 12* much of a maze if there were no walls in it). 13* 14* So, the matrix is about double the size of the actual maze. 15* 16* **** Please use MATRIX_SIZE in your programs 17* 18* If you'd like to test your 19* program with larger (or smaller) mazes, then please change 20* MAZE_SIZE (MATRIX_SIZE will change proportionately). My maze 21* generator uses MAZE_SIZE. 22*/ 23#define MAZE_SIZE 20 24#define MATRIX_SIZE (2 * MAZE_SIZE + 1) 25 26extern int maze [MATRIX_SIZE ][MATRIX_SIZE ]; 27 28#endif /* _MazeParams_h */