| Crates.io | shogi_usi_parser |
| lib.rs | shogi_usi_parser |
| version | 0.1.0 |
| created_at | 2022-05-24 14:34:15.965031+00 |
| updated_at | 2022-05-24 14:34:15.965031+00 |
| description | Conversion from strings in USI format |
| homepage | |
| repository | https://github.com/rust-shogi-crates/shogi_usi_parser/tree/main/shogi_usi_parser |
| max_upload_size | |
| id | 592834 |
| size | 38,786 |
rlib)This repository handles conversion from strings in USI format defined in the spec.
shogi_usi_parser crateThis crate provides methods that convert USI strings to data. For example, it can convert following strings:
as PartialPosition:
lnsgkgsnl/1r5b1/ppppppppp/9/9/9/PPPPPPPPP/1B5R1/LNSGKGSNL b - 1
as Position:
startpos moves 7g7f
(excerpt from https://web.archive.org/web/20080131070731/http://www.glaurungchess.com/shogi/usi.html)
For conversion, this crate defines the following traits and data types:
Self.
Implementors of this trait provides a method that reports detailed error reports, and a method that reports only whether an error occurred.Error: An error type for conversion. Some possible errors are the following:
9j is given as a square).Position when the parser encountered illegal moves