Expand description
§Rust shogi crates: Official notation of moves (rlib)
This crate provides functions that convert moves into string representations described in https://www.shogi.or.jp/faq/kihuhyouki.html.
§Notations
§Official notation
Examples: ▲28飛成 (A rook moves to 2h, after which it promotes)
飛 means a rook, and 成 means promotion.
§Traditional notation
Examples: ▲2八飛成 (八 is a Chinese character that represents “8”.)
§Available features
std:std-related functionalities are made available. Enabled by default.kansuji: Functions that emit strings in traditional notation are available. Enabled by default.
Functions§
- display_
single_ ⚠compactmove - Finds the string representation of a
Moveand write it to au8pointer. - display_
single_ ⚠compactmove_ kansuji kansuji - Finds the string representation of a
Moveand write it to au8pointer. - display_
single_ move - Finds the string representation of a
Move. - display_
single_ move_ kansuji kansuji - Finds the string representation of a
Move. - display_
single_ move_ write - Finds the string representation of a
Moveand write it to aWrite. - display_
single_ move_ write_ kansuji kansuji - Finds the string representation of a
Moveand write it to aWrite.