{"id":19293380,"url":"https://github.com/marianpekar/maze-escape","last_synced_at":"2025-08-17T08:07:11.211Z","repository":{"id":244142732,"uuid":"812572820","full_name":"marianpekar/maze-escape","owner":"marianpekar","description":"A minimalistic console game","archived":false,"fork":false,"pushed_at":"2024-07-04T21:42:51.000Z","size":1205,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T00:22:36.890Z","etag":null,"topics":["astar-algorithm","console-game","cplusplus","cpp","fbm","fractal-brownian-motion","game","maze","maze-generation-algorithms","maze-generator","perlin","perlin-noise","recursive-backtracker","recursive-backtracking-algorithm","winapi"],"latest_commit_sha":null,"homepage":"","language":"C++","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/marianpekar.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":"2024-06-09T09:30:16.000Z","updated_at":"2024-07-26T20:49:00.000Z","dependencies_parsed_at":"2024-06-15T13:28:45.589Z","dependency_job_id":"f58453aa-6e58-41e1-8fd5-129678ce280f","html_url":"https://github.com/marianpekar/maze-escape","commit_stats":null,"previous_names":["marianpekar/maze-escape"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/marianpekar/maze-escape","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianpekar%2Fmaze-escape","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianpekar%2Fmaze-escape/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianpekar%2Fmaze-escape/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianpekar%2Fmaze-escape/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marianpekar","download_url":"https://codeload.github.com/marianpekar/maze-escape/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marianpekar%2Fmaze-escape/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270820793,"owners_count":24651534,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"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":["astar-algorithm","console-game","cplusplus","cpp","fbm","fractal-brownian-motion","game","maze","maze-generation-algorithms","maze-generator","perlin","perlin-noise","recursive-backtracker","recursive-backtracking-algorithm","winapi"],"created_at":"2024-11-09T22:34:47.209Z","updated_at":"2025-08-17T08:07:11.188Z","avatar_url":"https://github.com/marianpekar.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Maze Escape\n\n ![Default Game](images/maze_default.gif)\n\nWhen you move, baba moves. Escape from maze before baba finds you.\n\nA minimalistic console game combines recursive backtracker, A* pathfinding and fractal Brownian motion.\n\n## Default Controls\n\n- `[w]`,`[s]`,`[a]` and `[d]` for step up, down, left, right respectively\n- `[k]` forfeits round (generates new maze, restarts positions, baba gets a point)\n- `[ctrl + c]` exits game\n\n## Custom Game (CLI)\n\nCreate a custom game with command line arguments, for example\n\n```\n.\\MazeEscape.exe w 64 h 16 o 16 nco1 1 nco2 2 nco3 1 nco4 2 nco5 1 pco 5\n```\ncreates a game like this:\n\n![Custom Game](images/maze_custom.gif)\n\n### Command Line Arguments\n\n| Long | Short | Description | Default |\n|-|-|-|-|\n| Width | w | Width of maze | 64 |\n| Height | h | Height of maze | 24 |\n| WallChar | wch | ASCII character of walls | # |\n| Holes | o | Number of holes in walls punched randomly after maze was generated with recursive backtracker | 12 |\n| WallColor | wco | Color code of wall | -1 (noise) |\n| PlayerColor | pco | Color code of player | 1 (blue) |\n| PlayerChar | pch | ASCII character of player | @ |\n| BabaColor | bco | Color code of baba | 4 (red) |\n| BabaChar | bch | ASCII character of baba | B |\n| KeyUp | ku | Keyboard key (char) to step up | w |\n| KeyDown | kd | Keyboard key (char) to step down | s |\n| KeyLeft | kl |Keyboard key (char) to step left | a |\n| KeyRight | kr | Keyboard key (char) to step right | d |\n| KeyForfeit | kf | Keyboard key (char) key to forgeit round | k |\n| NoiseColor1 | nco1 | 1st color for noise* | 8 (gray) |\n| NoiseColor2 | nco2 | 2nd color for noise* | 2 (green) |\n| NoiseColor3 | nco3 | 3rd color for noise* | 5 (purple) |\n| NoiseColor4 | nco4 | 4th color for noise* | 6 (yellow) |\n| NoiseColor5 | nco5 | 5th color for noise* | 3 (aqua) |\n| NoiseScale | nscl | fBM noise scale* | 0.0004 |\n| NoiseOctaves | noct |fBM noise octaves* | 8 |\n| NoisePersistence | nper | fBM noise persistence* | 32.0 |\n\n_*) only relevant when WallColor (wco) is set to -1 (noise)_\n\n### Color Codes\n\n| Color | Code |\n|- | - |\n| Noise | -1* |\n| Black | 0 |\n| Blue | 1 |\n| Green | 2 |\n| Aqua | 3 |\n| Red | 4 |\n| Purple | 5 |\n| Yellow | 6 |\n| White | 7 |\n| Gray | 8 |\n| LightBlue | 9 |\n| LightGreen | 10 |\n| LightAqua | 11 |\n| LightRed | 12 |\n| LightPurple | 13 |\n| LightYellow | 14 |\n| BrightLight | 15 |\n\n_*) -1 is only relevant for WallColor (wco) parameter_\n\nThese are foreground color codes on default background, you can change background color too with numbers higher than 15. The formula is `B * 16 + F` where B is color code for background color and F is for foreground color. A few examples:\n\n| Foreground/Background | Code |\n|-|-|\n| Black/Blue | 16 (1 * 16 + 0) |\n| Blue/Blue | 17 (1 * 16 + 1)  |\n| Green/Blue | 18 (1 * 16 + 2) |\n| Black/Green | 32 (2 * 16 + 0) |\n| Black/Aqua | 48 (3 * 16 + 0) |\n| Black/Red | 64 (4 * 16 + 0) |\n| Blue/Red | 65 (4 * 16 + 1) |\n| Green/Red | 66 (4 * 16 + 2) |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarianpekar%2Fmaze-escape","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarianpekar%2Fmaze-escape","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarianpekar%2Fmaze-escape/lists"}