{"id":16009509,"url":"https://github.com/bulkan/robot-simulation","last_synced_at":"2026-05-30T16:31:34.268Z","repository":{"id":190390271,"uuid":"682457800","full_name":"bulkan/robot-simulation","owner":"bulkan","description":"Just a simple robot simulation","archived":false,"fork":false,"pushed_at":"2023-08-24T11:35:21.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-05T19:42:16.667Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/bulkan.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}},"created_at":"2023-08-24T08:01:07.000Z","updated_at":"2023-08-24T08:14:19.000Z","dependencies_parsed_at":"2023-08-24T12:46:18.137Z","dependency_job_id":null,"html_url":"https://github.com/bulkan/robot-simulation","commit_stats":null,"previous_names":["bulkan/robot-simulation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bulkan%2Frobot-simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bulkan%2Frobot-simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bulkan%2Frobot-simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bulkan%2Frobot-simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bulkan","download_url":"https://codeload.github.com/bulkan/robot-simulation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240395740,"owners_count":19794573,"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-08T13:02:37.575Z","updated_at":"2026-05-30T16:31:34.258Z","avatar_url":"https://github.com/bulkan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Robot Simulation\n\nSimple robot simulation app command-line.\n\nI used the following versions of node \u0026 yarn.\n\n```\n\"node\": \"~18.17\",\n\"yarn\": \"\u003e=1.22.0\"\n```\n\nTo run first install dependencies.\n\n```\nyarn install\n```\n\nRun the tests to ensure it's working as expected\n\n```\nyarn test\n```\n\nThen run by;\n\n```\nyarn simulate [commands-file]\n```\n\nAn example run would be;\n\n```\nyarn simulate ./samples/1.txt\n```\n\n# Notes / Assumptions\n\n- This isn't a proper CLI in the sense that it should probably use `yarn link` along with the `bin` section in `package.json` as we just run it via `yarn simulate`\n\n- I added support for `# comment` lines in the input file\n\n- I've assumed that if the PLACE command puts the robot into an out bounds placement it will just start at 0,0 facing NORTH. For example given a 5x5 tabletop and PLACE 6,0,NORTH will place the bot at 0,0,NORTH\n\n- As the origin is (0,0) (SOUTH WEST most corner) then in a 5x5 tabletop (4,4) is the x,y position for the top right corner (NORTH EAST)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbulkan%2Frobot-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbulkan%2Frobot-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbulkan%2Frobot-simulation/lists"}