Giter Club home page Giter Club logo

maze-generator's Introduction

Maze Generator

Build & Run

To build maze generator you need OpenGL and SDL2 installed in your system

build:

mkdir build && cd build
../configure
make

There are also QtCreator .pro file in src

run:

cd src
./maze

Usage

Whether you run ./maze you will be promted about maze settings.

1) Width x Height: maze dimensions (how many cells it will have)
2) Fullscreen: Do you want visualization be fullscreen? (note: it's better to set maze dimensions proportional to your screen size)

If not fullscreen:
2.1) Window width x height in pixels

3) Start Point: Enter start point cell coordinates. Must be odd, greater then 0, but smaller then maze width/height
4) Step Delay(msec): animation delay (vsync enabled by default, so 0 would be ok)
5) Draw each x frame: draw each framescount % x == 0; must be >= 1. (1 is ok for little mazes, but can be too slow for big ones)

Note: by default exit point is down-left cell.

Once you entered all of these, window will be initialized.

Here are shortcuts to manage visualization process:

G: start generation process
S: once generation complete, start seekeng the way out

UP: drop one more frame
DOWN: drop one less frame

LEFT: decrease animation delay
RIGHT: increase animation delay

TAB: stop process and promt maze settings (to terminal)
ESC: end process and exit

maze-generator's People

Contributors

mersinvald avatar

Stargazers

 avatar geovas avatar  avatar Loty Gero avatar

Watchers

James Cloos avatar  avatar  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.