Setup::validate -> Setup::into_position
This commit is contained in:
parent
0d22c59cc3
commit
6f409799db
5 changed files with 19 additions and 18 deletions
|
|
@ -14,7 +14,7 @@ use eschac::prelude::*;
|
|||
|
||||
// read a position from a text record
|
||||
let setup = "7k/4P1rp/5Q2/5p2/1Pp1bP2/8/r4K1P/6R1 w - -".parse::<Setup>()?;
|
||||
let position = setup.validate()?;
|
||||
let position = setup.into_position()?;
|
||||
|
||||
// read a move in algebraic notation
|
||||
let san = "Ke1".parse::<San>()?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue