Skip to content
← Back

Maze Generator

PythonPygameNumPyPytest

Educational Python game that procedurally generates unique mazes each game. Modified DFS algorithm that guarantees always solvable mazes (BFS verification). 5 difficulty levels: from 15×15 (2 min) to 55×55 cells (6 min). Dynamic camera that follows the player, directional arrow when goal is off-screen, pause with P. Modular layered architecture (Presentation, Logic, Data) following SOLID principles. NumPy with uint8 type (8x less memory), font cache. 91 unit tests with Pytest.

Screenshots