Random generated maze with automatic search of the exit by the hero. A minotaur goes around at random, trying to eat the hero; every now and then the minotaur sleeps and the hero can pass over him.
Legend:
S
: start;X
: exit;M
: minotaur;Z
: sleeping minotaur;.
: path the hero has covered and is following;.
: path the hero has backtracked.
Simply run a server like this:
php -S localhost
and go to localhost on the browser.
Refresh when you want to get a new maze.
Via get parameters you can specify:
w
: maze width;h
: maze height.