update interface for text records
This commit is contained in:
parent
0d8b9cc9cf
commit
149aa841c9
5 changed files with 198 additions and 179 deletions
|
|
@ -13,7 +13,7 @@ time that no illegal move is played, with no runtime checks and no potential pan
|
|||
use eschac::prelude::*;
|
||||
|
||||
// read a position from a text record
|
||||
let setup = "7k/4P1rp/5Q2/5p2/1Pp1bP2/8/r4K1P/6R1 w - -".parse::<Setup>()?;
|
||||
let setup = Setup::from_text_record("7k/4P1rp/5Q2/5p2/1Pp1bP2/8/r4K1P/6R1 w - -")?;
|
||||
let position = setup.into_position()?;
|
||||
|
||||
// read a move in algebraic notation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue