{"id":18700908,"url":"https://github.com/rabestro/awk-maze-generator","last_synced_at":"2026-01-25T12:07:14.948Z","repository":{"id":167557492,"uuid":"640619995","full_name":"rabestro/awk-maze-generator","owner":"rabestro","description":"The AWK scripts to generate maze and find a path","archived":false,"fork":false,"pushed_at":"2025-04-20T20:28:41.000Z","size":301,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-19T03:41:18.835Z","etag":null,"topics":["box-drawing","box-drawing-characters","maze","maze-algorithms","maze-generator","maze-runner","maze-solver","recursive-backtracking-algorithm","script"],"latest_commit_sha":null,"homepage":"https://exercism.org/tracks/awk/exercises/mazy-mice","language":"Awk","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/rabestro.png","metadata":{"files":{"readme":"docs/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":"2023-05-14T17:29:39.000Z","updated_at":"2025-04-20T20:28:44.000Z","dependencies_parsed_at":"2024-11-07T11:43:48.293Z","dependency_job_id":"5d65c0dc-e73d-4e57-9475-30403f9e46cc","html_url":"https://github.com/rabestro/awk-maze-generator","commit_stats":null,"previous_names":["rabestro/awk-maze-generator"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rabestro/awk-maze-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabestro%2Fawk-maze-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabestro%2Fawk-maze-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabestro%2Fawk-maze-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabestro%2Fawk-maze-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rabestro","download_url":"https://codeload.github.com/rabestro/awk-maze-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rabestro%2Fawk-maze-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28752680,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T10:25:12.305Z","status":"ssl_error","status_checked_at":"2026-01-25T10:25:11.933Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["box-drawing","box-drawing-characters","maze","maze-algorithms","maze-generator","maze-runner","maze-solver","recursive-backtracking-algorithm","script"],"created_at":"2024-11-07T11:39:45.200Z","updated_at":"2026-01-25T12:07:14.916Z","avatar_url":"https://github.com/rabestro.png","language":"Awk","readme":"# The AWK scripts to generate maze\n\nThe repository contains AWK scripts to generate a random maze and find a path in the maze.\n\n## Generate a random maze\n\nTo generate a maze, you can use one of two scripts: `maze-gen-one.awk` or `maze-gen-two.awk`. These two scripts work the same but use completely different algorithms to generate the maze. Both scripts have two mandatory parameters - the number of rows (Rows) and columns (Cols) in the maze. You can also specify an optional `Seed` parameter. \n\nEvery time you run the script, you will receive a random maze.\n\n```shell\ngawk -f maze-gen-two.awk -v Rows=8 -v Cols=36 \n```\n\nHowever, if you specify optional `Seed` variables, you will get the same maze every time you run the script with a specific `Seed` value.\n\n```shell\ngawk -f maze-gen-two.awk -v Rows=8 -v Cols=36 -v Seed=42 \n```\n\n### Sample output \n\n![Maze Sample](../images/maze-sample.png)\n\n### Make scripts executable \n\nYou can set the execution flag for scripts.\n\n```shell\nchmod +x maze-gen-two.awk\n```\n\nThis will allow you to run scripts directly without specifying an interpreter.\n\n```shell\n./maze-gen-two.awk -v Rows=8 -v Cols=36\n```\n\n### Save the maze\n\n```shell\n./maze-gen-two.awk -v Rows=8 -v Cols=36 Seed=42 \u003e docs/sample.maze\n```\n\n## Test generated maze\n\nYou can run the test script to check the correctness of the maze generator.\n\n```shell    \ngawk -f maze-test.awk -v Rows=18 -v Cols=76 docs/sample.maze\n```\n\n## Find the path\n\n```shell\ngawk -f maze-runner.awk sample.maze\n```\n\n### Sample output of path\n\n![Maze Path](../images/maze-path.png)\n\n## ASCII version of maze generator\n\nIn case pseudographic characters are not supported on your computer, there is a version for generating a maze using only asc characters.\n\n```shell\ngawk -f maze-gen-asc.awk -v Rows=9 -v Cols=21\n```\n### Sample output\n\n```text\n➜  awk-maze-generator git:(release/5) ✗ gawk -f maze-gen-asc.awk -v Rows=9 -v Cols=21\n######################################################################################\n##          ##              ##          ##                          ##              ##\n##  ######  ##  ##########  ######  ##  ##  ##############  ######  ##  ##  ######  ##\n##  ##          ##      ##      ##  ##  ##      ##      ##      ##  ##  ##      ##  ##\n##  ##  ##########  ##  ######  ######  ######  ##  ##########  ######  ######  ##  ##\n##  ##  ##          ##  ##  ##      ##      ##  ##          ##          ##      ##  ##\n##  ######  ##########  ##  ######  ##  ##  ##  ######  ##  ##############  ######  ##\n##      ##  ##  ##      ##      ##  ##  ##  ##      ##  ##              ##      ##  ##\n##  ##  ##  ##  ##  ######  ##  ##  ##  ##  ######  ##  ##############  ######  ##  ##\n##  ##          ##  ##  ##  ##  ##  ##  ##      ##  ##          ##      ##      ##  ##\n##  ##############  ##  ##  ##  ##  ##  ##########  ##############  ##  ##  ######  ##\n##  ##              ##      ##          ##      ##      ##          ##  ##  ##  ##  ##\n##  ##  ##  ##########  ##################  ##  ######  ##  ######  ######  ##  ##  ##\n##  ##  ##  ##      ##  ##                  ##  ##      ##  ##      ##      ##        \n##  ##  ######  ##  ######  ##################  ##  ######  ######  ##  ##############\n    ##      ##  ##          ##      ##          ##      ##      ##  ##  ##          ##\n##  ######  ##  ##############  ##  ##  ##############  ######  ##  ##  ##  ######  ##\n##      ##                      ##  ##                          ##  ##          ##  ##\n######################################################################################\n➜  awk-maze-generator git:(release/5) ✗  \n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frabestro%2Fawk-maze-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frabestro%2Fawk-maze-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frabestro%2Fawk-maze-generator/lists"}