{"id":16125571,"url":"https://github.com/semibran/maze","last_synced_at":"2025-03-18T13:30:46.487Z","repository":{"id":57292843,"uuid":"90800214","full_name":"semibran/maze","owner":"semibran","description":":corn: flexible perfect maze generator","archived":false,"fork":false,"pushed_at":"2017-06-06T22:09:16.000Z","size":33,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-29T09:41:11.240Z","etag":null,"topics":["game","generator","maze","perfect"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/semibran.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}},"created_at":"2017-05-09T23:16:56.000Z","updated_at":"2021-11-22T20:33:02.000Z","dependencies_parsed_at":"2022-08-27T12:21:07.539Z","dependency_job_id":null,"html_url":"https://github.com/semibran/maze","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fmaze","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fmaze/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fmaze/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fmaze/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/semibran","download_url":"https://codeload.github.com/semibran/maze/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243928156,"owners_count":20370243,"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":["game","generator","maze","perfect"],"created_at":"2024-10-09T21:30:01.008Z","updated_at":"2025-03-18T13:30:46.166Z","avatar_url":"https://github.com/semibran.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# maze\n\u003e Flexible perfect maze generator\n\nThis module generates \"perfect mazes\" (i.e. no loops) by connecting \"nodes\" from a given list.\n\n![Isometric maze](maze.png \"Spunky rendering engine not included.\")\n\nNote that a \"node\" does not necessarily have to be a regular grid cell - it can be of any shape or size!\n\n## install\n```sh\nnpm install maze\n```\n\n## usage\nSee [`test.js`](https://github.com/semibran/maze/blob/master/test.js) for an extensive example. You could also clone this repository and run the script locally if you'd like to run the maze generator on your machine.\n\n### `maze = generate(nodes, adjacent, choose)`\nMaps each node in `nodes` to a list of connections and stores the resulting `Map` in `maze`.\n\n- `nodes`: A list of nodes to connect\n- `adjacent`: A function of the form `adjacent(a, b)` which determines if node `a` and node `b` can be connected\n- `choose`: A function of the form `choose(array)` which chooses a random item from `array`\n\n## license\n[MIT](https://opensource.org/licenses/MIT) © [Brandon Semilla](https://git.io/semibran)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemibran%2Fmaze","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemibran%2Fmaze","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemibran%2Fmaze/lists"}