Giter Club home page Giter Club logo

maze-solver's Introduction

maze-solver

Description

This project was an exercise for me to get a deeper understanding of working with search algorithms. Here I mainly used depth-first search algorithms, but the project can be extended to other search algorithms as well. Perhaps you would like to try a breadth-first search algorithm to solve the maze?

Installation

To install the project on MacOS or Linux be sure to have a Python version installed, either globally or as virtual environment. The run the following commands:

git clone https://github.com/langer-net/maze-solver
cd maze-solver

Usage

To run the project use the following command:

python main.py

The program displays a window in which a grid is rendered. This grid is then transformed into a maze using a recursive depth-first algorithm. Another recursive depth-first algorithm then attempts to solve the maze. A red line shows the correct path through the maze, while gray lines indicate failed attempts.

Versions

This project was written in Python v3.11.7, but should run with Python versions v3.8 or higher.

Dependencies

There are no external dependencies for this project.

Testing

To execute the tests run:

python -m unittest tests/test_maze.py

License

This project is licensed under MIT licence.

maze-solver's People

Contributors

langer-net 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.