{"id":18104123,"url":"https://github.com/tuwukee/toy_robot","last_synced_at":"2025-07-22T10:06:36.866Z","repository":{"id":150449763,"uuid":"41428775","full_name":"tuwukee/toy_robot","owner":"tuwukee","description":"Toy Robot Simulator","archived":false,"fork":false,"pushed_at":"2015-08-27T15:22:39.000Z","size":160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T05:48:32.818Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/tuwukee.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}},"created_at":"2015-08-26T13:59:06.000Z","updated_at":"2015-08-26T15:22:45.000Z","dependencies_parsed_at":"2023-04-06T03:54:24.785Z","dependency_job_id":null,"html_url":"https://github.com/tuwukee/toy_robot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tuwukee/toy_robot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuwukee%2Ftoy_robot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuwukee%2Ftoy_robot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuwukee%2Ftoy_robot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuwukee%2Ftoy_robot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuwukee","download_url":"https://codeload.github.com/tuwukee/toy_robot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuwukee%2Ftoy_robot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266472907,"owners_count":23934471,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-10-31T22:13:59.949Z","updated_at":"2025-07-22T10:06:36.842Z","avatar_url":"https://github.com/tuwukee.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Toy Robot Simulator\n\n### Description:\nThe application is a simulation of a toy robot moving on a square tabletop, of dimensions 5\nunits x 5 units. There are no other obstructions on the table surface. The robot is free to roam around the surface of the table, but must be prevented from falling to destruction. Any movement that would result in the robot falling from the table must be prevented, however further valid movement commands must still be allowed.\n\n**Create an application that can read in commands of the following form**\n\nPLACE X,Y,F\nMOVE\nLEFT\nRIGHT\nREPORT\n\n- PLACE will put the toy robot on the table in position X,Y and facing NORTH, SOUTH, EAST or\nWEST.\n- The origin (0,0) can be considered to be the SOUTH WEST most corner.\n- The first valid command to the robot is a PLACE command, after that, any sequence of\ncommands may be issued, in any order, including another PLACE command. The application\nshould discard all commands in the sequence until a valid PLACE command has been\nexecuted.\n- MOVE will move the toy robot one unit forward in the direction it is currently facing.\n- LEFT and RIGHT will rotate the robot 90 degrees in the specified direction without changing\nthe position of the robot.\n- REPORT will announce the X,Y and F of the robot. This can be in any form, but standard\noutput is sufficient.\n- A robot that is not on the table can choose the ignore the MOVE, LEFT, RIGHT and REPORT\ncommands.\n- Input can be from a file, or from standard input, as the developer chooses.\n- Provide test data to exercise the application.\n\n### Constraints:\nThe toy robot must not fall off the table during movement. This also includes the initial\nplacement of the toy robot.\nAny move that would cause the robot to fall must be ignored.\n\n### Example Input and Output:\n- **a)**\nPLACE 0,0,NORTH\nMOVE\nREPORT\nOutput: 0,1,NORTH\n- **b)**\nPLACE 0,0,NORTH\nLEFT\nREPORT\nOutput: 0,0,WEST\n- **c)**\nPLACE 1,2,EAST\nMOVE\nMOVE\nLEFT\nMOVE\nREPORT\nOutput: 3,3,NORTH\n\n### Deliverables:\nThe Ruby source files, the test data and any test code.\nIt is not required to provide any graphical output showing the movement of the toy robot.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuwukee%2Ftoy_robot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuwukee%2Ftoy_robot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuwukee%2Ftoy_robot/lists"}