{"id":16323559,"url":"https://github.com/clementreiffers/maze-creator","last_synced_at":"2026-01-27T11:33:00.716Z","repository":{"id":124226173,"uuid":"461257890","full_name":"clementreiffers/maze-creator","owner":"clementreiffers","description":"a maze generator made in python","archived":false,"fork":false,"pushed_at":"2022-06-01T12:58:12.000Z","size":659,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T04:12:00.270Z","etag":null,"topics":["matplotlib","maze","maze-generator","numpy","python","python3"],"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/clementreiffers.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,"zenodo":null}},"created_at":"2022-02-19T17:07:05.000Z","updated_at":"2024-12-01T09:47:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"2b3a033a-d861-4586-8f2b-1195f41ec6c1","html_url":"https://github.com/clementreiffers/maze-creator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/clementreiffers/maze-creator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clementreiffers%2Fmaze-creator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clementreiffers%2Fmaze-creator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clementreiffers%2Fmaze-creator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clementreiffers%2Fmaze-creator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clementreiffers","download_url":"https://codeload.github.com/clementreiffers/maze-creator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clementreiffers%2Fmaze-creator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28812398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T07:41:26.337Z","status":"ssl_error","status_checked_at":"2026-01-27T07:41:08.776Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["matplotlib","maze","maze-generator","numpy","python","python3"],"created_at":"2024-10-10T22:55:06.887Z","updated_at":"2026-01-27T11:33:00.711Z","avatar_url":"https://github.com/clementreiffers.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# maze-creator\n\nthis script creates random maze.\nit is inspired from a video find on YouTube, but only for the way of think to create the maze.\n\nThere is a file \"maze_solver.py\" but it doesn't work for now, I'm thinking about a method to solve it.\n\n## demo \n\n\u003cp  align=\"center\"\u003e\n    \u003cimg src=\"readme_files/demo.gif\" alt=\"let's see readme_files/demo.gif\"\u003e\n\u003c/p\u003e\n\nas shown above, we can create a totally random maze in 3 different ways:\n- by showing all steps of the creation of the maze, it only serves to show the logic\n- by showing a maze directly into a window \n- by creating it into a matrix format, so it could be useful to use it if we want to solve it with algorithms.\n\nmatrix format shown in the demo.gif :\n````text\n[[ 1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1]\n [27 27 27 27 27 27  1 27 27 27 27 27  1 27  1 27 27 27  1 27  1]\n [ 1  1  1  1  1 27  1 27  1 27  1 27  1 27  1  1  1 27  1 27  1]\n [ 1 27 27 27  1 27 27 27  1 27  1 27 27 27  1 27  1 27  1 27  1]\n [ 1  1 27  1  1 27  1 27  1  1  1  1 27  1  1 27  1 27  1 27  1]\n [ 1 27 27 27 27 27  1 27  1 27 27 27 27 27 27 27 27 27 27 27  1]\n [ 1  1  1  1  1 27  1  1  1  1  1  1 27  1  1 27  1  1  1 27  1]\n [ 1 27 27 27 27 27  1 27  1 27 27 27 27 27  1 27  1 27 27 27  1]\n [ 1  1  1 27  1  1  1 27  1  1  1 27  1  1  1 27  1  1  1  1  1]\n [ 1 27  1 27 27 27 27 27  1 27  1 27 27 27  1 27  1 27 27 27  1]\n [ 1 27  1 27  1 27  1  1  1 27  1  1  1 27  1 27  1  1  1 27  1]\n [ 1 27 27 27  1 27 27 27 27 27 27 27  1 27  1 27  1 27 27 27  1]\n [ 1 27  1 27  1 27  1  1  1  1  1  1  1  1  1 27  1 27  1  1  1]\n [ 1 27  1 27  1 27 27 27 27 27  1 27  1 27 27 27  1 27  1 27  1]\n [ 1  1  1 27  1  1  1  1  1 27  1 27  1  1  1 27  1 27  1 27  1]\n [ 1 27  1 27 27 27  1 27  1 27 27 27  1 27 27 27  1 27 27 27  1]\n [ 1 27  1 27  1  1  1 27  1  1  1 27  1  1  1  1  1 27  1 27  1]\n [ 1 27  1 27 27 27  1 27 27 27  1 27 27 27  1 27 27 27  1 27  1]\n [ 1 27  1  1  1 27  1 27  1  1  1 27  1  1  1  1  1  1  1 27  1]\n [ 1 27 27 27 27 27  1 27 27 27 27 27 27 27 27 27 27 27 27 27 27]\n [ 1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1]]\n````\nall 1 are walls, and other numbers are ways.\n## Before use the script\nmake sure you respect all dependencies.\ntype this command in your terminal to install all dependencies :\n```bash\npip install -r requirements.txt\n```\nit will install the same version of matplotlib and numpy I used to code it.\n\n## How to use the script\n\nthere is 3 main functions into the maze generator :\n- create_maze() which give you a matrix representing a random maze \n- show_maze() which show you directly the maze in a window  \n- show_animation_maze() which show you an animation with all steps for the creation of the maze\n\n### here an example to know how to use them :\n\n```python3\nimport maze_generator as mg\n\nwidth, height = 11, 11\n\n# we give to the maze generator the dimensions wanted\nmg.init(width, height)\n\n# we get directly the maze by this function, we can print it into matplotlib or into a prompt as we can see below \nmaze = mg.create_maze()\nprint(maze)\n\n# this function shows directly a random maze \nmg.show_maze()\n\n# this function shows an animation with all steps to create a maze \nmg.show_animation_maze()\n```\n\n## Sources\n\n- https://www.youtube.com/embed/K7vaT8bZRuk\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclementreiffers%2Fmaze-creator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclementreiffers%2Fmaze-creator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclementreiffers%2Fmaze-creator/lists"}