Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 1.16 KB

README.md

File metadata and controls

42 lines (24 loc) · 1.16 KB

Garden - A maze generation implementation

Setting up and using it

Setup

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

Usage

  • 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 like gifsicle

Note: All implementation made in imps.py. You can check the algorithm and other things in there. For usage, examine samplescript.py

Example

This is the result when you run samplescript.py

opt

This is another maze with the size of 512 x 512

lab