new constructors
This commit is contained in:
parent
808cde1c42
commit
494de58804
6 changed files with 92 additions and 56 deletions
|
|
@ -179,7 +179,7 @@ impl San {
|
|||
}
|
||||
let target_rank = Rank::from_ascii(cur)?;
|
||||
let target_file = File::from_ascii(r.next()?)?;
|
||||
let target = Square::new(target_file, target_rank);
|
||||
let target = Square::from_coords(target_file, target_rank);
|
||||
let mut cur = r.next();
|
||||
let capture = cur == Some(b'x');
|
||||
if capture {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue