Labyrinth generator and solver
2015.02.08.
Introduction
This project is sort of the sibling of my recursive colouring game. The original of this one can be found here.
Description
So the website said that a labyrinth generator is supposed to be an easy task using recursion. Well, I don't know about how hard this would be to do in a proper and more general way than I have done it here, but here's basically a copy of the one found on the site.
I tried keeping the code clean for the most part, the graphics added to some parts after coding them made them a little messy at points. Still, there are 2 fairly nice recursive algorithms working in there to generate and solve the labyrinths.
Features
Pressing any key generates a new labyrinth, while clicking a mouse button solves the current one. The number of squares and the size of a square is adjustable in the code, within certain constraints (due to the implementation of the generator algorithm).
Downloads
Downloading the zip file that contains the executable results in a warning (at least in Chrome) as a security measure, but you can choose to "Keep" it.
You can download the source file and compile it yourself to gain access to size settings.
Name | Description | Size | Date | |
---|---|---|---|---|
lab.c | Source code | 8.19 KB | 2015.02.08. | |
lab.zip | Executable with dll's | 277 KB | 2015.02.08. |