{"id":15510582,"url":"https://github.com/kortirso/chess","last_synced_at":"2026-03-02T09:03:40.950Z","repository":{"id":56841815,"uuid":"156071286","full_name":"kortirso/chess","owner":"kortirso","description":"Elixir package for playing chess","archived":false,"fork":false,"pushed_at":"2025-12-26T05:32:56.000Z","size":106,"stargazers_count":12,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-27T16:58:27.985Z","etag":null,"topics":["chess","chess-engine","elixir","elixir-library"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/kortirso.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-11-04T10:35:43.000Z","updated_at":"2025-12-26T05:33:00.000Z","dependencies_parsed_at":"2025-09-09T03:42:20.264Z","dependency_job_id":"d3b93f00-188a-4c4e-b9f5-af25940a77ea","html_url":"https://github.com/kortirso/chess","commit_stats":{"total_commits":66,"total_committers":1,"mean_commits":66.0,"dds":0.0,"last_synced_commit":"8b57b2d6dd4235e2ee67622f6521f83cd237417b"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kortirso/chess","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kortirso%2Fchess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kortirso%2Fchess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kortirso%2Fchess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kortirso%2Fchess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kortirso","download_url":"https://codeload.github.com/kortirso/chess/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kortirso%2Fchess/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29996288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"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":["chess","chess-engine","elixir","elixir-library"],"created_at":"2024-10-02T09:49:39.967Z","updated_at":"2026-03-02T09:03:40.937Z","avatar_url":"https://github.com/kortirso.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chess\n\nChess package for playing chess, with game logics, validations.\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `chess` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:chess, \"~\u003e 0.4.4\"}\n  ]\nend\n```\n\n## Start new game\n\n```elixir\n  # start new game\n  Chess.new_game()\n\n  # or initialize game from FEN-notation\n  Chess.new_game(\"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1\")\n```\n\nNew game will be created with squares and figures, FEN-notation, and game's status\n\n## Make move\n\n```elixir\n  Chess.play(%Chess.Game{}, \"e2-e4\")\n```\n\nAfter valid move game object will contain new figure's position and FEN-notation\n\n### Pion's promotion\n\nAdd third option if pion achives last line, one from [q|n|r|b], default - q\n\n```elixir\n  Chess.play(%Chess.Game{}, \"e7-e8\", \"q\")\n```\n\n### Castling\n\nTo make castling move:\n\n```elixir\n  Chess.play(%Chess.Game{}, \"0-0\")\n  Chess.play(%Chess.Game{}, \"0-0-0\")\n```\n\n## TODO\n\n- [X] Create game\n- [X] Create game from FEN-notation\n- [X] Figure movements\n- [X] Pion's en passant\n- [X] Castling\n- [X] Checkmate\n- [X] Checking possible checkmate for next turn\n- [X] Pion's promotion at last line\n- [ ] Draw\n- [ ] Using PGN\n- [ ] Manual change game's status\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/kortirso/chess.\n\n## License\n\nThe package is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n## Disclaimer\n\nUse this package at your own peril and risk.\n\n## Documentation\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at [https://hexdocs.pm/chess](https://hexdocs.pm/chess).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkortirso%2Fchess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkortirso%2Fchess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkortirso%2Fchess/lists"}