Crate shogi_official_kifu

Crate shogi_official_kifu 

Source
Expand description

§Rust shogi crates: Official notation of moves (rlib)

crate docs Rust Version license

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 Move and write it to a u8 pointer.
display_single_compactmove_kansujikansuji
Finds the string representation of a Move and write it to a u8 pointer.
display_single_move
Finds the string representation of a Move.
display_single_move_kansujikansuji
Finds the string representation of a Move.
display_single_move_write
Finds the string representation of a Move and write it to a Write.
display_single_move_write_kansujikansuji
Finds the string representation of a Move and write it to a Write.