{"id":15482175,"url":"https://github.com/davidpeach/rover","last_synced_at":"2026-02-22T09:01:48.032Z","repository":{"id":50894213,"uuid":"210553591","full_name":"davidpeach/Rover","owner":"davidpeach","description":"Answer to a technical test I did for a job interview. ","archived":false,"fork":false,"pushed_at":"2021-05-28T02:45:26.000Z","size":900,"stargazers_count":0,"open_issues_count":13,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T15:20:36.988Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/davidpeach.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":"2019-09-24T08:39:07.000Z","updated_at":"2021-05-28T16:51:54.000Z","dependencies_parsed_at":"2022-09-24T22:40:37.907Z","dependency_job_id":null,"html_url":"https://github.com/davidpeach/Rover","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/davidpeach%2FRover","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidpeach%2FRover/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidpeach%2FRover/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidpeach%2FRover/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidpeach","download_url":"https://codeload.github.com/davidpeach/Rover/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246049635,"owners_count":20715511,"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-10-02T05:08:21.923Z","updated_at":"2025-10-26T09:48:59.376Z","avatar_url":"https://github.com/davidpeach.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mars Rover\n\n## The Task\nFirstly, determine a map grid with width and height.\n\nThen place a \"Mars Rover\" at a given position and facing direction on that grid. Then give it a set of directions:\n - F = Forward\n - L = Left\n - R = Right\n \nFinally report the Rover's final location along with the way it is facing. If it is off-grid, report it's last known location.\n\nThis task was described in plain text and I was told to use any language and framework. I chose Laravel.\n\n## Setup\n```\ngit clone git@github.com:davidpeach/Rover.git\n# or\ngit clone https://github.com/davidpeach/Rover.git\n\ncd ./Rover\n\ncomposer install\n```\n\n## Running the Test Suite\n\n```\n\n./vendor/bin/phpunit\n\n```\n\n\n## Running\n\nBelow is an example of the questions it will ask you along with example responses you could give.\n\n```\n\nphp artisan rover:setup\n\nWhat is the map size?:\n \u003e # 4 8 (Map grid 4 blocks wide by 8 blocks high - zero indexed)\n\nPlease give a mapping.:\n\u003e # (2, 3, N) FLLFR\n\nDo you wish to add another mapping? (yes/no) [no]:\n\u003e # yes\n\nPlease give a mapping.:\n\u003e # (1, 0, S) FFRLF\n\nDo you wish to add another mapping? (yes/no) [no]:\n\u003e # yes\n\nPlease give a mapping.:\n\u003e # (2, 2, N) RFLFFFFFF\n\nDo you wish to add another mapping? (yes/no) [no]:\n\u003e # no\n\n## You should then receive a response like this:\n(2, 3, W)\n(1, 0, S) LOST\n(3, 7, N) LOST\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidpeach%2Frover","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidpeach%2Frover","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidpeach%2Frover/lists"}