Playing with various maze-generating algorithms in Processing.py.
- Randomized depth-first search
- Randomized Kruskal's algorithm
- Randomized Prim's algorithm
- Wilson's algorithm
- Recursive division
Dependencies: java >= 1.8
, older versions may also work.
Linux and Mac:
git clone https://github.com/ly0va/a-maze.git
cd a-maze
./install.sh # downloads processing-py.jar
For Windows, you should run it using Processing IDE.
Run with
java -jar processing-py.jar src/main.pyde
Each player's goal is to get to the opposite corner of the maze. The game is completely keyboard-driven. After launch, press one of the digits keys (1
-5
) to select the algorithm.
Player 1 controls: W/A/S/D
Player 2 controls: Arrows
Other:
Shift+R
- restartC
- toggle the correct pathP
- toggle players' pathsF
- toggle floodfill