{"id":34210131,"url":"https://github.com/caik/go-knights-travails","last_synced_at":"2026-06-01T04:01:57.975Z","repository":{"id":46715227,"uuid":"366177291","full_name":"Caik/go-knights-travails","owner":"Caik","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-28T23:00:57.000Z","size":2314,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-19T01:28:42.616Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/Caik.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":"2021-05-10T21:14:09.000Z","updated_at":"2021-09-28T23:01:00.000Z","dependencies_parsed_at":"2022-09-22T20:11:54.205Z","dependency_job_id":null,"html_url":"https://github.com/Caik/go-knights-travails","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Caik/go-knights-travails","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Caik%2Fgo-knights-travails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Caik%2Fgo-knights-travails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Caik%2Fgo-knights-travails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Caik%2Fgo-knights-travails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Caik","download_url":"https://codeload.github.com/Caik/go-knights-travails/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Caik%2Fgo-knights-travails/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33759178,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"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":[],"created_at":"2025-12-15T20:59:30.736Z","updated_at":"2026-06-01T04:01:57.958Z","avatar_url":"https://github.com/Caik.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Knight's Travails\n---\n\n##\n\n## About\n\nKnight's Travails is an application that proposes to solve the problem of finding the shortest path between two squares on a chessboard using only valid knight/camel moves.\n\nThe goal is to return the next moves to achieve the desired target square.\n\nThe current version only consider that only one piece (knight or camel) exists on the chessboard.\n\n##\n---\n\n## Features\n\n- Input values validation\n- Accepts chessboard notation both on lowercase or uppercase (e.g. a1 or A1)\n- Choose from available chess pieces: Knight or Camel (fairy chess)\n\n##\n---\n\n## Installing\n\nThere is already a compiled binary for **[Linux](https://github.com/Caik/go-knights-travails/blob/main/dist/knights-travails)** and another one for **[Windows](https://github.com/Caik/go-knights-travails/blob/main/dist/knights-travails.exe)** on the **dist/** directory.\nSo you only have to download the appropriate binary and run on your machine.\n\nPS: You may need to give execution permission to the binary after downloading it:\n\n ```bash\n# giving execution permission on linux\nchmod +x ./knights-travails\n```\n\nIf you have **Go** configured on your environment, you can build your own binaries as well:\n\n```bash\n# building a MacOS on AMD64 binary\nCGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -a -ldflags '-extldflags \"-static\" -s -w' -o ./knights-travails-darwin-amd64 cmd/knights-travails/main.go\n```\n\n##\n---\n\n## Usage\n\nExample:\n\n```bash\n# getting the shortest path from A1 to B2 using the knight\n./knights-travails A1 B2 knight\n```\n\n##\n---\n\n## Tests\n\nRunning all tests:\n\n```bash\nmake test\n```\n\nor:\n\n```bash\ngo test ./... -cover\n```\n\n##\n---\n\n## Authors\n\n* Carlos Henrique Severino (**carloshenrique.dev@gmail.com**)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaik%2Fgo-knights-travails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaik%2Fgo-knights-travails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaik%2Fgo-knights-travails/lists"}