{"id":15647024,"url":"https://github.com/nozaq/shogi-rs","last_synced_at":"2025-04-05T09:06:20.396Z","repository":{"id":45261250,"uuid":"82358902","full_name":"nozaq/shogi-rs","owner":"nozaq","description":"A Bitboard-based shogi library in Rust. Board representation, move generation/validation and time control utilities.","archived":false,"fork":false,"pushed_at":"2025-01-06T09:59:09.000Z","size":157,"stargazers_count":47,"open_issues_count":3,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-29T08:06:10.237Z","etag":null,"topics":["bitboard","board-game","rust","rust-crate","sfen","shogi","usi"],"latest_commit_sha":null,"homepage":"https://docs.rs/shogi/latest/shogi/","language":"Rust","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/nozaq.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-02-18T03:38:41.000Z","updated_at":"2025-01-18T13:59:58.000Z","dependencies_parsed_at":"2024-05-20T23:28:46.041Z","dependency_job_id":"2d3312b4-08b1-4316-8f1d-ccb8e35da30f","html_url":"https://github.com/nozaq/shogi-rs","commit_stats":{"total_commits":79,"total_committers":8,"mean_commits":9.875,"dds":0.5696202531645569,"last_synced_commit":"cb4be56b67262bb34f8bcc685301cb4cf47a8bc5"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nozaq%2Fshogi-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nozaq%2Fshogi-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nozaq%2Fshogi-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nozaq%2Fshogi-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nozaq","download_url":"https://codeload.github.com/nozaq/shogi-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247312077,"owners_count":20918344,"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":["bitboard","board-game","rust","rust-crate","sfen","shogi","usi"],"created_at":"2024-10-03T12:16:27.653Z","updated_at":"2025-04-05T09:06:20.361Z","avatar_url":"https://github.com/nozaq.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shogi-rs\n\n[![Github Actions](https://github.com/nozaq/shogi-rs/workflows/build/badge.svg)](https://github.com/nozaq/shogi-rs/actions?workflow=build)\n[![Coverage Status](https://coveralls.io/repos/github/nozaq/shogi-rs/badge.svg)](https://coveralls.io/github/nozaq/shogi-rs)\n[![crates.io](https://img.shields.io/crates/v/shogi.svg)](https://crates.io/crates/shogi)\n[![docs.rs](https://docs.rs/shogi/badge.svg)](https://docs.rs/shogi)\n\nA Bitboard-based shogi library in Rust. Board representation, move generation/validation and time control utilities.\n\n[Documentation](https://docs.rs/shogi)\n\n## Usage\n\nA library for implementing Shogi application.\n\n`shogi` provides a various types and implementations for representing concepts and rules in Shogi.\nMost types can be created programatically while they can also be deserialized from / serialized to SFEN format.\nSee [USIプロトコルとは (What is the USI protocol?)](http://shogidokoro.starfree.jp/usi.html) for more detail about UCI protocol specification and SFEN format.\n\n## Examples\n\n```rust\nuse shogi::{Move, Position};\nuse shogi::bitboard::Factory as BBFactory;\nuse shogi::square::consts::*;\n\nBBFactory::init();\nlet mut pos = Position::new();\n\n// Position can be set from the SFEN formatted string.\npos.set_sfen(\"lnsgkgsnl/1r5b1/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL b - 1\").unwrap();\n\n// You can programatically create a Move instance.\nlet m = Move::Normal{from: SQ_7G, to: SQ_7F, promote: false};\npos.make_move(m).unwrap();\n\n// Move can be created from the SFEN formatted string as well.\nlet m = Move::from_sfen(\"7c7d\").unwrap();\npos.make_move(m).unwrap();\n\n// Position can be converted back to the SFEN formatted string.\nassert_eq!(\"lnsgkgsnl/1r5b1/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL b - 1 moves 7g7f 7c7d\", pos.to_sfen());\n```\n\n## Related crates\n\n- [csa-rs](https://github.com/nozaq/csa-rs): A Shogi game serialization/deserialization library in CSA format. \n- [usi-rs](https://github.com/nozaq/usi-rs): A library to handle type-safe communication with USI-compatible shogi engines. \n\n## License\n\n`shogi-rs` is licensed under the MIT license. Please read the [LICENSE](LICENSE) file in this repository for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnozaq%2Fshogi-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnozaq%2Fshogi-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnozaq%2Fshogi-rs/lists"}