A simple maze generator and solver!
Warning, this is an old and not optimized project!
Maze Generator
works better on Linux.
You can compile it with;
$ gcc maze.c -o maze
Settings must be chosen before compiling, by modifying these lines:
//config parameters
#define SIZE 121
#define WALL 'O'
#define WALK '.'
#define SPEED 10000
SIZE
is the side length. It must be an odd numberWALL
is the char used to represent wallsWALK
is the char used to represent the maze solutionSPEED
is the delay (in ms) between screen refresh, so a lower value means a faster animation