make Setup::bitboards public
This commit is contained in:
parent
b45952b6b7
commit
b3eee18a16
3 changed files with 38 additions and 37 deletions
|
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue