nejdetckenobi / garden

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:Python 100.0%