GithubHelp home page GithubHelp logo

juliolouzz / maze_solver Goto Github PK

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

This project is a graphical maze generator and solver built using Python's Tkinter library.

License: MIT License

Python 100.00%

maze_solver's Introduction

Maze Generator and Solver

This project is a graphical maze generator and solver built using Python's Tkinter library. The maze can be generated with random walls, ensuring there's always a path from the start to the end. It uses depth-first search for both generation and solving the maze, but can be extended with other algorithms.

Requirements

  • Python 3.10 or higher
  • Tkinter library

Setup

Before diving into the project, make sure you have the following:

  • A code editor (VS Code is recommended)
  • A command line (Bash for Mac OS/Linux, WSL for Windows)

Installing Tkinter

Make sure you have Tkinter installed. Run the following command to check if Tkinter is installed:

python -m tkinter

If you encounter issues, install the necessary dependencies:

  • On Ubuntu:
    sudo apt-get install python3-tk
  • On Mac OS:
    brew install python-tk

Running the Project

To run the project execute the script with:

python main.py

Maze Example

Future Ideas

  • Implement other solving algorithms like breadth-first search or A*
  • Enhance the visuals with different colors and animations
  • Add user interface elements to allow configuration changes
  • Create larger and more complex mazes
  • Convert the maze into a game where users can navigate through it
  • Allow the user to race an algorithm
  • Make it 3-dimensional
  • Time the various algorithms and compare their performance

Feel free to contribute and make this project even more awesome!

License

This project is licensed under the MIT License.

maze_solver's People

Contributors

juliolouzz 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.