1
0
Fork 0

make Setup::bitboards public

This commit is contained in:
Paul-Nicolas Madelaine 2025-11-18 06:49:33 +01:00
parent b45952b6b7
commit b3eee18a16
3 changed files with 38 additions and 37 deletions

View file

@ -77,7 +77,7 @@ impl<'l> Move<'l> {
pub fn captured(self) -> Option<Role> {
match self.raw.kind {
MoveType::EnPassant => Some(Role::Pawn),
_ => self.position.as_setup().get_role(self.raw.to),
_ => self.position.as_setup().role(self.raw.to),
}
}