A Rust library that defines structs compatible with 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
's Position
type.
mermaid
graph LR;
JKF((json-kifu-format))
CSAin[CSA formatted kifu] -->|parse| JKF;
KIFin[KIF formatted kifu] -->|parse| JKF;
JSON[JSON] -->|parse| JKF
JKF -->|write| CSAout[CSA formatted kifu]
JKF -->|write| KIFout[KIF formatted kifu]
JKF -->|write| USIout[USI position data]
JKF -.->|std::convert| Core(shogi_core::Position)
See github.com/na2hiro/json-kifu-format.
cargo run --example csa2jkf <CSA file>
cargo run --example csa2kif <CSA file>
cargo run --example kif2jkf <KIF file>
cargo run --example kif2csa <KIF file>
cargo run --example jkf2usi <JKF file>