Skip to main content

Python utility to generate and solve mazes.

Project description

Mazegen

Mazegen is a python command line tool to generate and solve mazes

Installation

pip install mazegen

Help

You can get help information by running -h or --help

mazegen --help

This will output the following documentation

Usage: mazegen [option] [filename] [optional]

OPTIONS:
generate        Generates .maze file
view            Views existing .maze file as an image
solve           Solves a .maze file

OPTIONAL ARGUMENTS:
-s, --save      Save generated .png file

Usage

To generate a pxq maze named first.maze, run the following command

mazegen generate first.maze

To view the output from a .maze file

mazegen view first.maze

To solve a .maze file

mazegen solve first.maze

Options

  • -s or --save will save the generated image file

Example

An unsolved 42x42 maze
unsolved
Solution
solved

Note

All mazes start from the top left and end at bottom right

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mazegen-0.0.2.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

mazegen-0.0.2-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page