{"id":24405220,"url":"https://github.com/musadiqpasha/maze-generator-and-solver","last_synced_at":"2026-05-17T13:37:22.337Z","repository":{"id":272364280,"uuid":"916346913","full_name":"MusadiqPasha/Maze-Generator-and-Solver","owner":"MusadiqPasha","description":"This project generates a random maze of a given size and provides a solution using Dijkstra's algorithm or allows the user to manually solve it.","archived":false,"fork":false,"pushed_at":"2025-01-13T23:44:55.000Z","size":7552,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T02:12:05.787Z","etag":null,"topics":["dijkstra-algorithm","maze-generator","maze-solver","processing","processing3","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MusadiqPasha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-13T23:16:36.000Z","updated_at":"2025-01-13T23:45:18.000Z","dependencies_parsed_at":"2025-01-21T02:40:14.001Z","dependency_job_id":null,"html_url":"https://github.com/MusadiqPasha/Maze-Generator-and-Solver","commit_stats":null,"previous_names":["musadiqpasha/maze-generator-and-solver"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MusadiqPasha%2FMaze-Generator-and-Solver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MusadiqPasha%2FMaze-Generator-and-Solver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MusadiqPasha%2FMaze-Generator-and-Solver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MusadiqPasha%2FMaze-Generator-and-Solver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MusadiqPasha","download_url":"https://codeload.github.com/MusadiqPasha/Maze-Generator-and-Solver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243510125,"owners_count":20302294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dijkstra-algorithm","maze-generator","maze-solver","processing","processing3","python3"],"created_at":"2025-01-20T04:27:05.565Z","updated_at":"2026-05-17T13:37:22.288Z","avatar_url":"https://github.com/MusadiqPasha.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Maze-Generator-and-Solver\nThis project generates random mazes and solves them using Dijkstra's algorithm to find the shortest path. It features an interactive interface allowing both auto-solve and manual navigation of the maze.\n\n## Features\n\n- **Random Maze Generation**: Generates a random maze using a backtracking algorithm.\n- **Maze Solver**: Solves the maze using Dijkstra's algorithm.\n- **Interactive Navigation**: Allows the user to manually navigate the maze using WASD keys.\n- **Auto-Solve Option**: Option to automatically solve the maze, with the solution path being visually displayed.\n- **Adjustable Maze Size**: The size of the maze can be modified dynamically using an input box.\n- **Elapsed Time Display**: Displays the elapsed time for the auto-solve feature.\n\n\n## How It Works\n\n### Maze Generation and Solving\n- The maze is generated using a backtracking algorithm.\n- Starting from the top-left corner, it recursively explores neighboring cells, carving paths (-1) and marking walls (-2).\n- The algorithm backtracks when no unvisited neighbors remain, ensuring a perfect maze with one solution.\n\n### Maze Solving: \n- Dijkstra's algorithm is used to find the shortest path from the start to the end.\n- It explores neighboring cells, updating the shortest path cost, and reconstructs the solution path once the end is reached.\n- The path is then marked on the maze (2).\n\n### Visualization:\n- During the maze generation, the walls (-2) are drawn as black squares, while the open paths (-1) are displayed as white squares.\n- The start point is typically highlighted as a red square (1).\n- The path solution is displayed as purple squares (2) during the auto-solve process.\n\n## Demo\n\n### Dijkstra's algorithm\n\u003cimg src='https://github.com/MusadiqPasha/Maze-Generator-and-Solver/blob/main/demo/solve%20auto.gif'\u003e\n\n### User\n\u003cimg src='https://github.com/MusadiqPasha/Maze-Generator-and-Solver/blob/main/demo/solve%20user.gif'\u003e\n\n## Usage\n**Generate Maze:** Click the \"Generate Maze\" button to create a new random maze.\n**Manual Solve:** Use the WASD keys to navigate through the maze. Avoid walls (black cells).\n**Auto Solve: **Click the \"Auto-Solve\" button to solve the maze automatically using Dijkstra's algorithm.\n**Adjust Maze Size:** Click on the Maze Size button , then enter a new maze size in the input box (default: 50x50) and press Enter to update the maze and move the cursor out of the Maze Size box and click it.\n\n\n## Installation\n1. Download and install [Processing](https://processing.org/) [use Python Mode]\n2. Clone this repository or download the ZIP file:\n   ```bash\n   git clone https://github.com/kmusadiqpasha/maze-generator-and-solver\n\n3. Open the .pde files for each simulation in Processing.\n4. Run the sketches and watch the maze come to life!\n\n### License\n- This project is licensed under the MIT License - see the LICENSE file for details.\n\n##\n## Just follow me and Star ⭐ my repository \n## Thank You!!\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmusadiqpasha%2Fmaze-generator-and-solver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmusadiqpasha%2Fmaze-generator-and-solver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmusadiqpasha%2Fmaze-generator-and-solver/lists"}