Cover story · OOP coursework, 3rd term · Unity & C#
A maze, three ways
For my object-oriented programming coursework I built a Unity game. You're a cube, you're in a maze, and you want out.
The game itself is simple. The fun part was the generator. It can build a maze with three different algorithms: depth-first search (recursive backtracking), hunt-and-kill, and Kruskal's. Each one leaves its own handwriting in the corridors. You could also set your own maze size, pick an interface colour, and press Show solution when you'd had enough.
The widget here is a small browser port of the same idea. Pick an algorithm, watch it carve, then steer the cube out with the arrow keys (or swipe, on a phone).
- Engine Unity
- Language C#
- Algorithms DFS · Hunt & kill · Kruskal

