{"id":24918185,"url":"https://github.com/dev-siri/chess","last_synced_at":"2025-03-28T08:40:42.868Z","repository":{"id":254300506,"uuid":"846110560","full_name":"Dev-Siri/chess","owner":"Dev-Siri","description":"Attempted rewrite of chess.js to Go.","archived":false,"fork":false,"pushed_at":"2024-08-22T15:07:51.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T08:28:07.207Z","etag":null,"topics":["chess","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dev-Siri.png","metadata":{"files":{"readme":"README.md","changelog":"history.go","contributing":null,"funding":null,"license":"LICENSE","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":"2024-08-22T14:50:50.000Z","updated_at":"2024-08-22T15:07:54.000Z","dependencies_parsed_at":"2024-08-22T17:03:54.875Z","dependency_job_id":"e4165375-cc8d-4f62-9ae4-74610932a4cb","html_url":"https://github.com/Dev-Siri/chess","commit_stats":null,"previous_names":["dev-siri/chess"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dev-Siri%2Fchess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dev-Siri%2Fchess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dev-Siri%2Fchess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dev-Siri%2Fchess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dev-Siri","download_url":"https://codeload.github.com/Dev-Siri/chess/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245999332,"owners_count":20707554,"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":["chess","golang"],"created_at":"2025-02-02T09:18:59.635Z","updated_at":"2025-03-28T08:40:42.847Z","avatar_url":"https://github.com/Dev-Siri.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chess\n\nLibrary for analysing and playing chess games programmatically. Direct translation of [chess.js](https://github.com/jhlywa/chess.js) to Go.\n\nRepresents a game with the 0x88 chess board representation.\n\n## Why?\n\nI know there's a library called `notnil/chess` for Go too, but I found one function not available in that package, the `.Moves()` function (That is available in chess.js) to count for mobility for one side.\n\nSo I directly translated the Chess.js library to Go. Also provides function for validating FENs and prettier move representation.\n\n## holy hell\n\nEn passant still doesn't work properly (look at test \"TestPositionsPgn\") The captured pawn is still not taken off the board. (Wrong square set to nil \u0026 I tried for a while but didn't see a change)\n\n## Usage\n\n- Get the package\n\n```sh\ngo get github.com/Dev-Siri/chess\n```\n\n- Start using it ¯\\\\\\_(ツ)\\_/¯\n\n```go\npackage main\n\nimport (\n  \"log\"\n  \"fmt\"\n\n  \"github.com/Dev-Siri/chess\"\n)\n\nfunc main() {\n  game, err := chess.NewGame()\n\n  if err != nil {\n    log.Fatalf(err)\n  }\n\n  game2, err := chess.NewGameFromFen(\"Or start from a FEN position\")\n\n  if err != nil {\n    log.Fatalf(err)\n  }\n\n  // Make a move\n  move, _ := game.Move(\"e4\")\n\n  // Print position\n  fmt.Println(move.Pgn())\n  fmt.Println(move.Fen())\n}\n```\n\n## License\n\nThis project is MIT Licensed, see [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-siri%2Fchess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-siri%2Fchess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-siri%2Fchess/lists"}