{"id":16678428,"url":"https://github.com/royaltm/js-labyrinth","last_synced_at":"2025-06-28T07:35:00.159Z","repository":{"id":142206798,"uuid":"58039516","full_name":"royaltm/js-labyrinth","owner":"royaltm","description":"The labyrinth generator","archived":false,"fork":false,"pushed_at":"2017-02-13T08:29:39.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T07:13:39.936Z","etag":null,"topics":["labyrinth"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/royaltm.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":"2016-05-04T09:24:47.000Z","updated_at":"2019-02-21T21:59:13.000Z","dependencies_parsed_at":"2023-03-20T23:03:59.354Z","dependency_job_id":null,"html_url":"https://github.com/royaltm/js-labyrinth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/royaltm/js-labyrinth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royaltm%2Fjs-labyrinth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royaltm%2Fjs-labyrinth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royaltm%2Fjs-labyrinth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royaltm%2Fjs-labyrinth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/royaltm","download_url":"https://codeload.github.com/royaltm/js-labyrinth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royaltm%2Fjs-labyrinth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262393077,"owners_count":23304041,"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":["labyrinth"],"created_at":"2024-10-12T13:29:15.549Z","updated_at":"2025-06-28T07:35:00.138Z","avatar_url":"https://github.com/royaltm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Labyrinth\n=========\n\nThis library creates a true labyrinth using low-memory, cpu-intensive hunt'n'seek algorythm. \n\nProgram\n-------\n\n### Install\n\n```\nnpm i -g royaltm/js-labyrinth\n```\n\n### Create\n\n```\n$ labyrinth\n\n┏━━━━━━━┳━━━━━━━━━┳━┓\n┃ ╺━┳━╸ ┃ ┏━━━━━┓ ╹ ┃\n┣━━━┫ ╺━┻━┛ ┏━╸ ┃ ╺━┫\n┃ ╻ ┗━━━━━┳━┛ ┏━┻━┓ ┃\n┃ ┃ ┏━╸ ╻ ┃ ╻ ┃ ╻ ╹ ┃\n┃ ┗━┫ ╺━┻━┛ ┗━┫ ┗━━━┫\n┣━╸ ┣━╸ ┏━━━┓ ╹ ┏━━━┫\n┃ ┏━┛ ┏━┻━┓ ┗━┳━┛ ╻ ┃\n┃ ┗━┓ ┃ ╻ ┃ ╻ ╹ ┏━┫ ┃\n┃ ╻ ┃ ╹ ┃ ┗━┻━╸ ┃ ╹ ┃\n┗━┻━┻━━━┻━━━━━━━┻━━━┛\n\n$ labyrinth 40 5\n\n┏━━━━━┳━┳━━━━━━━━━┳━━━━━┳━━━┳━━━━━┳━━━━━┳━━━━━┳━┳━━━━━┳━━━━━━━━━━━━━━━┳━━━━━┳━━━┓\n┃ ┏━╸ ┃ ┃ ╺━┓ ╺━┳━┛ ┏━┓ ╹ ╺━┫ ╺━┓ ╹ ┏━╸ ┃ ╺━┓ ┃ ┣━━━┓ ╹ ┏━━━━━━━┳━━━┓ ┗━━━┓ ╹ ╻ ┃\n┃ ┣━━━┛ ┃ ╻ ┣━╸ ┃ ╺━┫ ┗━━━┓ ╹ ┏━┻━┓ ┣━━━┻━┓ ┃ ╹ ┃ ╻ ┗━┳━┫ ┏━━━╸ ┃ ╺━┻━━━┓ ┃ ╺━┫ ┃\n┃ ╹ ╻ ╺━╋━┛ ┃ ╺━┫ ╻ ╹ ┏━┓ ┗━┳━┛ ╻ ╹ ┃ ╻ ╻ ┃ ┗━━━┫ ┗━┓ ╹ ┃ ┃ ╺━━━┻━━━┳━╸ ┃ ┣━╸ ┃ ┃\n┣━━━┛ ╻ ╹ ╺━┻━┓ ╹ ┣━╸ ┃ ┗━╸ ┃ ╺━┻━━━┛ ┃ ┗━┛ ╺━┓ ╹ ╻ ┗━┓ ╹ ┃ ╺━━━┓ ╺━┛ ╻ ╹ ╹ ┏━┛ ┃\n┗━━━━━┻━━━━━━━┻━━━┻━━━┻━━━━━┻━━━━━━━━━┻━━━━━━━┻━━━┻━━━┻━━━┻━━━━━┻━━━━━┻━━━━━┻━━━┛\n```\n\n\nLibrary\n-------\n\nAdd to `package.json`:\n\n```\n\"dependencies\": {\n  \"labyrinth\": \"royaltm/js-labyrinth\"\n}\n```\n\n```js\nconst {Wall, Direction} = require('labyrinth');\n\nvar wall = new Wall(20, 20);\nwall.carve();\nwall.print();\nwall.open(0, 10, Direction.Up);\nassert.equal(true, wall.isOpen(0, 10, Direction.Up));\nwall.close(0, 10, Direction.Up);\nassert.equal(false, wall.isOpen(0, 10, Direction.Up));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froyaltm%2Fjs-labyrinth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froyaltm%2Fjs-labyrinth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froyaltm%2Fjs-labyrinth/lists"}