Setting up the project is easy. Follow these steps:
-
Clone this repo
git clone https://github.com/nejdetckenobi/garden
-
Go to project directory
cd garden
-
Create a virtual environment
virtualenv -p $(which python3) venv
-
Activate the virtual environment
source venv/bin/activate
-
Install dependencies
pip install pillow imageio
-
To generate a simple animation with 5 mazes, use:
python samplescript.py
-
After that, you'll get a file named
lab.gif
. This is the animation. It's unoptimized so before trying to upload anywhere, I recommend optimizing it via tools likegifsicle
Note: All implementation made in imps.py
. You can check the algorithm and other things in there. For usage, examine samplescript.py
This is the result when you run samplescript.py
This is another maze with the size of 512 x 512