{"id":18824330,"url":"https://github.com/galassie/fsharp-journeys","last_synced_at":"2026-01-20T02:30:16.370Z","repository":{"id":156772937,"uuid":"219073114","full_name":"galassie/fsharp-journeys","owner":"galassie","description":"💡A small but fun coding challenge","archived":false,"fork":false,"pushed_at":"2020-02-27T22:33:02.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-30T04:27:22.815Z","etag":null,"topics":["fsharp","fsharp-exercises","kata"],"latest_commit_sha":null,"homepage":"","language":"F#","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/galassie.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":"2019-11-01T22:41:37.000Z","updated_at":"2022-12-08T23:32:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"6bc35e8c-69fc-4217-a211-0e71070742bb","html_url":"https://github.com/galassie/fsharp-journeys","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/galassie%2Ffsharp-journeys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galassie%2Ffsharp-journeys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galassie%2Ffsharp-journeys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galassie%2Ffsharp-journeys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/galassie","download_url":"https://codeload.github.com/galassie/fsharp-journeys/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239761628,"owners_count":19692545,"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":["fsharp","fsharp-exercises","kata"],"created_at":"2024-11-08T00:56:12.236Z","updated_at":"2026-01-20T02:30:16.337Z","avatar_url":"https://github.com/galassie.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FSharp Journeys\n\nA coding challenge based on the one defined by Mike Hadlow [github](https://github.com/mikehadlow/Journeys).\n\nThis implementation is entirely written in F# and it's a dotnet core 3.0 solution.\n\n## Build on your machine\n\nIf you want to build this soltion, execute the following commands:\n\n``` shell\ngit clone https://github.com/galassie/fsharp-journeys.git\ncd fsharp-journeys\ndotnet build\n```\n\nIf you want to run the tests, execute the following command:\n\n``` shell\ndotnet test\n```\n\n## Run the console application\n\nTo run the application and see the output, execute the following commands from the root folder of the repository:\n\n``` shell\ncd ./src/FSharp.Journeys.Console\ndotnet run\n```\n\nThe journeys are defined in the input.txt file.\n\nMost of those are correct:\n\n``` shell\n❗Start Journey n. 1❗\n\nInitial robot state:\n{ Position = Position (1, 1)\n  Direction = East }\n\nCommands:\n[TurnRight; MoveForward; TurnRight; MoveForward; TurnRight; MoveForward;\n TurnRight; MoveForward]\n\nExpected final robot state:\n{ Position = Position (1, 1)\n  Direction = East }\n\nActual final robot state:\n{ Position = Position (1, 1)\n  Direction = East }\n\nTest result: PASS 🎉\n```\n\nI've also added two more wrong journeys to check the output (one with parsing errors and the other with mismatch expected-actual final robot state):\n\n``` shell\n❗️Start Journey n. 4❗️\n\nParsing error ⛔️\nFailed to parse state -\u003e Failed to parse direction: A\n\n\n❗️Start Journey n. 5❗️\n\nInitial robot state:\n{ Position = Position (0, 3)\n  Direction = West }\n\nCommands:\n[TurnLeft; TurnLeft; MoveForward; MoveForward; MoveForward; TurnLeft;\n MoveForward; TurnLeft; MoveForward; TurnLeft]\n\nExpected final robot state:\n{ Position = Position (2, 9)\n  Direction = East }\n\nActual final robot state:\n{ Position = Position (2, 4)\n  Direction = South }\n\nTest result: FAIL ❌\n```\n\n## Final notes\n\nSuggestions on how to improve the code are more than welcome! 😊  \nI'm not by any means an F# expert so feel free to contact me or open PRs if you notice something that could have been done better!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalassie%2Ffsharp-journeys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgalassie%2Ffsharp-journeys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalassie%2Ffsharp-journeys/lists"}