Function inanis::state::text::piece_to_symbol

source ·
pub fn piece_to_symbol(piece: usize) -> Result<char, String>
Expand description

Converts piece into the corresponding character (p/P, n/N, b/B, r/R, q/Q, k/K). Returns Err with the proper error message when the piece is unknown.