{"id":20810954,"url":"https://github.com/exposedcat/exit-from-maze","last_synced_at":"2026-04-19T16:03:44.559Z","repository":{"id":104256688,"uuid":"379397837","full_name":"ExposedCat/exit-from-maze","owner":"ExposedCat","description":"Algorithm finding an exit from the given maze","archived":false,"fork":false,"pushed_at":"2021-06-22T21:15:45.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-27T01:59:04.932Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ExposedCat.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":"2021-06-22T20:52:36.000Z","updated_at":"2021-06-22T21:15:48.000Z","dependencies_parsed_at":"2023-05-04T23:46:51.403Z","dependency_job_id":null,"html_url":"https://github.com/ExposedCat/exit-from-maze","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ExposedCat/exit-from-maze","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExposedCat%2Fexit-from-maze","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExposedCat%2Fexit-from-maze/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExposedCat%2Fexit-from-maze/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExposedCat%2Fexit-from-maze/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ExposedCat","download_url":"https://codeload.github.com/ExposedCat/exit-from-maze/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExposedCat%2Fexit-from-maze/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32012789,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-17T20:29:10.512Z","updated_at":"2026-04-19T16:03:44.536Z","avatar_url":"https://github.com/ExposedCat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Exit from maze\n\nAlgorithm finding an exit from the given maze.\n\n## Usage\n\n```js\nimport { escapeMaze } from './index.js'\n\n/*\n  0 - start position\n  # - wall\n  + - way\n*/\nconst maze = [\n    ['#','#','#','#','#','#','#','#','#'],\n    ['#','+','+','+','#','+','+','+','#'],\n    ['#','+','#','+','#','+','#','+','#'],\n    ['+','+','#','+','0','+','#','+','#'],\n    ['#','#','#','+','#','#','#','#','#'],\n    ['#','#','+','+','#','#','#','#','#'],\n    ['#','#','+','#','#','#','#','#','#'],\n    ['#','#','#','#','#','#','#','#','#'],\n]\nconst exitPath = escapeMaze(maze)\n// ['left', 'top', 'top', 'left', 'left', 'bottom', 'bottom', 'left']\n```\nAlgorithm is adapted for situations with multiple exits (shows the nearest).  \nThere must only be one start point (otherwise the first point will be used).  \nExit code `1` means that start point is not specified.  \nExit code `2` means that the maze has no exit.  \n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n[GNU General Public License v3.0](https://choosealicense.com/licenses/gpl-3.0/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexposedcat%2Fexit-from-maze","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexposedcat%2Fexit-from-maze","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexposedcat%2Fexit-from-maze/lists"}