[board] Fix the King's position in the Position::starting()

I wrote a test of the starting position for DiagramFormatter and discovered that Position::starting() was placing the king incorrectly. Fixed it!
This commit is contained in:
Eryn Wells 2023-12-27 07:59:05 -07:00
parent ff59799add
commit b9ba2629c4
2 changed files with 10 additions and 3 deletions

View file

@ -58,4 +58,11 @@ mod tests {
let diagram = DiagramFormatter(&pos);
println!("{}", diagram);
}
#[test]
fn starting() {
let pos = Position::starting();
let diagram = DiagramFormatter(&pos);
println!("{}", diagram);
}
}