GithubHelp home page GithubHelp logo

r-writes-cpp / mazemerise-cpp Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 113 KB

A maze generator and solver written in C++

License: GNU General Public License v3.0

C++ 98.49% Meson 1.51%
maze-generation maze-generator maze-solver maze-solver-algorithm maze-solving maze-solving-algorithm

mazemerise-cpp's Introduction

Mazemerise-cpp - a maze generator and solver written in C++


Mazemerise is a time and memory-efficient maze generator and solver written in C++. It contains no external libraries and uses the .pgm image format to output images. Info about the program's design can be found in the source code itself, which is thoroughly commented with brief, intuitive explanations. Mazemerise is licenced under GNU GPL 3.0.

Examples

The images below show the sole path solutions for some mazes both generated and solved with the program. These are the optimal and only routes for their respective mazes.

50 x 50:
An image of a randomly-generated 50 x 50 grid. An image of a randomly-generated 50 x 50 grid. The solution path is highlighted in grey.

200 x 200:
An image of a randomly-generated 200 x 200 grid. An image of a randomly-generated 200 x 200 grid. The solution path is highlighted in grey.

Usage

The maze generator accepts a file name, followed by width and height respectively (e.g. ./generate output.pgm 50 50 on Linux systems). The maze solver accepts an input file path to a valid maze of the same format as one of the program's outputs, and then accepts an output file name (e.g. ./solve input.pgm output.pgm on Linux systems).

mazemerise-cpp's People

Contributors

r-writes-cpp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.