{"id":22930946,"url":"https://github.com/prowilliam/maze_generator","last_synced_at":"2026-04-28T20:02:47.798Z","repository":{"id":259373680,"uuid":"877702293","full_name":"ProWilliam/Maze_generator","owner":"ProWilliam","description":"A maze generator is created where you can modify its dimensions and shows a red route where it describes the solution of the maze, and it is exported in png format","archived":false,"fork":false,"pushed_at":"2024-10-24T16:24:53.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T11:17:02.417Z","etag":null,"topics":["numpy","pillow","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ProWilliam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-10-24T05:13:31.000Z","updated_at":"2024-10-24T16:24:56.000Z","dependencies_parsed_at":"2024-10-24T23:27:07.107Z","dependency_job_id":"fa7b780b-a105-4058-b3e8-4381f6b074e6","html_url":"https://github.com/ProWilliam/Maze_generator","commit_stats":null,"previous_names":["prowilliam/maze_generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProWilliam%2FMaze_generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProWilliam%2FMaze_generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProWilliam%2FMaze_generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ProWilliam%2FMaze_generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ProWilliam","download_url":"https://codeload.github.com/ProWilliam/Maze_generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246679068,"owners_count":20816402,"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":["numpy","pillow","python"],"created_at":"2024-12-14T10:32:24.426Z","updated_at":"2026-04-28T20:02:47.710Z","avatar_url":"https://github.com/ProWilliam.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Maze Generator and Solver\n\nThis project is a Python maze generator that uses a **backtracking** algorithm to create fully filled mazes, and then solves the maze using depth-first search. The generated mazes can be exported as images for easy visualization.\n\n## Contents\n\n- `maze.py`: Contains the `Maze` class that implements the generation, solving, and image export of the maze.\n- `maze.png`: Image of the generated maze and its solution (automatically generated).\n\n## Requirements\n\n- Python 3.x\n- Numpy\n- Pillow\n\n\n## Running the Script\n\n- Windows:\n  Ensure that bash is available. This can be done through Git Bash or Windows Subsystem for Linux (WSL). To run the script, use the following command:\n\n```bash\nbash setup_env.sh\n```\n\n- Linux and macOS:\n  Before running the script, ensure it has execution permissions. You can set this by running:\n\n```bash\nchmod +x setup_env.sh\n```\n\n- Additional Notes\n  If you encounter any issues with the script or have questions about the setup process, feel free to ask for assistance.\n\n\n## How to Use\n\n1. Clone the repository https://github.com/ProWilliam/Maze_generator.git\n\n2. Or download the maze.py file.\n\n2. Ensure you have Python and the dependencies installed.\n\n3. Run the script as follows:\n\n```bash\npython maze.py\n```\n\n## Maze Visualization\n\nThe generated mazes are displayed as images, with the maze structure represented in black and the paths in white. The solution path is highlighted in red. Below are some examples of what the mazes look like:\n\n### Example 1\n![Example Maze 1](https://raw.githubusercontent.com/ProWilliam/Maze_generator/refs/heads/main/maze_1.png)\n\n### Example 2\n![Example Maze 2](https://raw.githubusercontent.com/ProWilliam/Maze_generator/refs/heads/main/maze_2.png)\n\n### Example 3\n![Example Maze 3](https://raw.githubusercontent.com/ProWilliam/Maze_generator/refs/heads/main/maze_3.png)\n\n### How to View\nAfter running the script, the maze and its solution will be saved as `maze.png` in the project directory. You can open this image with any image viewer to see the maze layout and the solution path.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprowilliam%2Fmaze_generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprowilliam%2Fmaze_generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprowilliam%2Fmaze_generator/lists"}