1
0
Fork 0

new constructors

This commit is contained in:
Paul-Nicolas Madelaine 2025-10-19 14:28:36 +02:00
parent 808cde1c42
commit 494de58804
6 changed files with 92 additions and 56 deletions

View file

@ -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 {