{"id":27079297,"url":"https://github.com/makomweb/mars-rover","last_synced_at":"2025-08-19T00:20:01.732Z","repository":{"id":145882536,"uuid":"148806649","full_name":"makomweb/mars-rover","owner":"makomweb","description":"JAVA implementation of the mars-rover code kata","archived":false,"fork":false,"pushed_at":"2021-03-03T11:45:42.000Z","size":124,"stargazers_count":6,"open_issues_count":0,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-30T19:17:20.174Z","etag":null,"topics":["java"],"latest_commit_sha":null,"homepage":"","language":"Java","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/makomweb.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,"zenodo":null}},"created_at":"2018-09-14T15:18:45.000Z","updated_at":"2025-05-30T17:16:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"c5d40cf3-f809-4e28-b12d-33eb43107f20","html_url":"https://github.com/makomweb/mars-rover","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/makomweb/mars-rover","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makomweb%2Fmars-rover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makomweb%2Fmars-rover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makomweb%2Fmars-rover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makomweb%2Fmars-rover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makomweb","download_url":"https://codeload.github.com/makomweb/mars-rover/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makomweb%2Fmars-rover/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271079229,"owners_count":24695597,"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-18T02:00:08.743Z","response_time":89,"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":["java"],"created_at":"2025-04-06T01:34:14.411Z","updated_at":"2025-08-19T00:20:01.724Z","avatar_url":"https://github.com/makomweb.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mars Rover Code Kata\n\n[![Build Status](https://mkomischke.visualstudio.com/mars-rover-ci/_apis/build/status/makomweb.mars-rover)](https://mkomischke.visualstudio.com/mars-rover-ci/_build/latest?definitionId=6)\n\n[http://kata-log.rocks/mars-rover-kata](http://kata-log.rocks/mars-rover-kata)\n\n## The Problem\nA squad of robotic rovers are to be landed by NASA on a plateau on Mars.\nThis plateau, which is curiously rectangular, must be navigated by the rovers\nso that their on-board cameras can get a complete view of the surrounding\nterrain to send back to Earth. \n\nA rover's position and location is represented by a combination of x and y\nco-ordinates and a letter representing one of the four cardinal compass points.\nThe plateau is divided up into a grid to simplify navigation. An example position\nmight be 0, 0, N, which means the rover is in the bottom left corner and facing North. \n\nIn order to control a rover, NASA sends a simple string of letters. The possible\nletters are 'L', 'R' and 'M'. 'L' and 'R' makes the rover spin 90 degrees left\nor right respectively, without moving from its current spot. 'M' means move\nforward one grid point, and maintain the same heading. \n\nAssume that the square directly North from (x, y) is (x, y+1). \n\nThe first line of input is the upper-right coordinates of the plateau, the\nlower-left coordinates are assumed to be 0,0. The rest of the input is information\npertaining to the rovers that have been deployed. Each rover has two lines of\ninput. The first line gives the rover's position, and the second line is a series\nof instructions telling the rover how to explore the plateau. \n\nThe position is made up of two integers and a letter separated by spaces,\ncorresponding to the x and y coordinates and the rover's orientation. \n\nEach rover will be finished sequentially, which means that the second rover\nwon't start to move until the first one has finished moving. \n\nThe output for each rover should be its final coordinates and heading. \n\n**Input:**  \n5 5  \n1 2 N  \nLMLMLMLMM  \n3 3 E  \nMMRMMRMRRM\n\n**Output:**  \n1 3 N  \n5 1 E\n\n## The Solution\n\nThis has been created using gradle; to run the tests, just execute:\n\n```\n./gradlew test\n```\n\nor (on windows machines):\n\n```\ngradlew.bat test\n```\n\n## Use the commandline app\n\nPackage the app using:\n\n```\ngradlew.bat build\n```\n\nAnd then execute the app from the subfolder `build\\libs`:\n\n ```\njava -jar mars-rover.jar\n ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakomweb%2Fmars-rover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakomweb%2Fmars-rover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakomweb%2Fmars-rover/lists"}