{"id":20681840,"url":"https://github.com/open-source-community/mazerunner","last_synced_at":"2025-04-22T12:12:47.282Z","repository":{"id":76534711,"uuid":"130758915","full_name":"Open-Source-Community/MazeRunner","owner":"Open-Source-Community","description":"A simple maze game that uses the user's code to move the tank ","archived":false,"fork":false,"pushed_at":"2018-04-26T12:49:48.000Z","size":2235,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-22T12:12:36.629Z","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/Open-Source-Community.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":"2018-04-23T21:28:11.000Z","updated_at":"2022-03-21T03:41:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"c002fb93-361e-47bf-9e3c-09ea1ee6347c","html_url":"https://github.com/Open-Source-Community/MazeRunner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-Source-Community%2FMazeRunner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-Source-Community%2FMazeRunner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-Source-Community%2FMazeRunner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Open-Source-Community%2FMazeRunner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Open-Source-Community","download_url":"https://codeload.github.com/Open-Source-Community/MazeRunner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250237832,"owners_count":21397401,"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":[],"created_at":"2024-11-16T22:12:01.651Z","updated_at":"2025-04-22T12:12:47.275Z","avatar_url":"https://github.com/Open-Source-Community.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MazeRunner\nA simple maze game that uses the user's code to move the tank \n\nGame Link : [Game](https://open-source-community.github.io/MazeRunner/mazestuffs/maze%20rendring/index.html)\n\n## How To Play:\n\n- There are 5 main functions \n- ``` toty.movright(); ``` Moves the tank one block right.\n- ``` toty.movleft(); ``` Moves the tank one block left.\n- ``` toty.movup(); ``` Moves the tank one block up.\n- ``` toty.movdown(); ``` Moves the tank one block down.\n- ``` toty.isBlock(str) ``` Checks if the given direction has a block or not, for example if str equals 'right' and on the right of the tank there is a block then the function will return true.\n- ``` toty.isWin(str) ``` Checks if the given direction is the winning block or not.\n\n- Use recursive algorithms to solve any maze using the ```isBlock()``` and ```isWin()``` functions to create a generic algorithm, be creative.\n\n- If you solved it try forking this repo and adding a screenshot of your submission code in the submission folder and pull request it, best answers shall be displayed.\n\n\n## Code example\n\n- This code is not generic, it just solves the first maze, you can copy and run it to test how the tank moves.\n\n``` javascript \nvar d = function(a)\n{\n    toty.movdown();\n}\nvar r = function(a)\n{\n    toty.movright();\n}\n\nvar a =[6,6,1,1,1,2,1];\nvar b=[d,r,d,r,d,r,d];\n\nfor (var i=0; i\u003c7; i++)\n{\n    for (var j=0; j\u003ca[i]; j++)\n    {\n        b[i](2); \n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-source-community%2Fmazerunner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-source-community%2Fmazerunner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-source-community%2Fmazerunner/lists"}