Skip to content

2D maze-like world generator with no dead ends written in pure python

License

Notifications You must be signed in to change notification settings

Exenifix/worldgen

Repository files navigation

ExenWorldGen

Module for quick maze-like 2D world generations
https://github.com/Exenifix/worldgen/blob/master.github/res/maze.png

Installation

Library is available on PyPI:

$ pip install exenworldgen

Code Usage

from exenworldgen import World

world = World((25, 25))
data = world.generate()  # data can also be obtained via world.data
world.print()  # print the world

CLI Usage

python -m exenworldgen 25x25      # one world of size 25x25
python -m exenworldgen 10x10 30   # 30 worlds of size 10x10