Giter Club home page Giter Club logo

mazify's Introduction

Mazify

Mazify is a tool that can be used to generate and solve mazes. There is also a game module written using Pygame if you'd like to see how fast can you solve a maze.

Creating a maze

python3 main.py create rows=10 columns=20 file-path='mazes/small'

small maze

python3 main.py create rows=100 columns=200 file-path='mazes/big'

big maze

Solving a maze

python3 main.py solve 'start=(1,1)' 'end=(7,6)' file-path='mazes/small.txt'

small maze

python3 main.py solve 'start=(34,19)' 'end=(76,163)' file-path='mazes/big.txt'

big maze big maze dfs

Playing a game

python3 main.py play file-path='mazes/big.txt'

game

Maze solvers

There are 3 maze-solvers implemented:

  • Depth-first search maze-solver
  • Breadth-first search maze-solver
  • A* graph-search maze-solver

Key controls

  • z -> Highlight current location
  • x -> Highlight destination
  • t -> Show solution from current location
  • c -> Decrease frame rate
  • v -> Increase frame rate
  • f -> Show frame rate
  • Arrows or WASD for movement

Stuff used to make this:

mazify's People

Contributors

alexandruvaleanu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.