https://github.com/sugyan/shogi-kifu-converter
Parsers and converters for Shogi kifu
https://github.com/sugyan/shogi-kifu-converter
json-kifu-format rust shogi
Last synced: 4 months ago
JSON representation
Parsers and converters for Shogi kifu
- Host: GitHub
- URL: https://github.com/sugyan/shogi-kifu-converter
- Owner: sugyan
- License: mit
- Created: 2022-07-25T16:08:25.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-26T15:03:10.000Z (about 1 year ago)
- Last Synced: 2025-03-24T00:39:21.813Z (7 months ago)
- Topics: json-kifu-format, rust, shogi
- Language: Rust
- Homepage: https://docs.rs/shogi-kifu-converter
- Size: 260 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.crates.io.md
- License: LICENSE
Awesome Lists containing this project
README
# shogi-kifu-converter
[](https://crates.io/crates/shogi-kifu-converter)
[](https://docs.rs/shogi-kifu-converter)
[](https://opensource.org/licenses/MIT)
[](https://github.com/sugyan/shogi-kifu-converter/actions/workflows/rust.yml)A Rust library that defines structs compatible with [json-kifu-format](https://github.com/na2hiro/json-kifu-format), containing parsers and converters for Shogi kifu (game record) for converting to and from json-kifu-format. And, it also provides conversion from `JsonKifuFormat` type to [`shogi_core`](https://crates.io/crates/shogi_core)'s `Position` type.

## About json-kifu-format (JKF)
See [github.com/na2hiro/json-kifu-format](https://github.com/na2hiro/json-kifu-format).
## Supporting formats and types
### Parsers
- [CSA format](http://www2.computer-shogi.org/protocol/record_v22.html)
- [KIF format](http://kakinoki.o.oo7.jp/kif_format.html)
- [KI2 format](http://kakinoki.o.oo7.jp/KifuwInt.htm)### Converters
- [`ToUsi`](https://docs.rs/shogi-kifu-converter/latest/shogi_kifu_converter/jkf/struct.JsonKifuFormat.html#impl-ToUsi-for-JsonKifuFormat)
- [`ToCsi`](https://docs.rs/shogi-kifu-converter/latest/shogi_kifu_converter/jkf/struct.JsonKifuFormat.html#impl-ToCsa-for-JsonKifuFormat)
- [`ToKif`](https://docs.rs/shogi-kifu-converter/latest/shogi_kifu_converter/jkf/struct.JsonKifuFormat.html#impl-ToKif-for-JsonKifuFormat)
- [`ToKi2`](https://docs.rs/shogi-kifu-converter/latest/shogi_kifu_converter/jkf/struct.JsonKifuFormat.html#impl-ToKi2-for-JsonKifuFormat)
- [`TryFrom<&jkf::JsonKifuFormat> for shogi_core::Position`](https://docs.rs/shogi-kifu-converter/latest/shogi_kifu_converter/jkf/struct.JsonKifuFormat.html#impl-TryFrom%3C%26JsonKifuFormat%3E-for-Position)