[position] Export Position::active_color()
Passes through to the Board method.
This commit is contained in:
parent
4b96db230d
commit
54d9c3838d
1 changed files with 5 additions and 0 deletions
|
@ -53,6 +53,11 @@ impl Position {
|
||||||
pub fn board(&self) -> &Board {
|
pub fn board(&self) -> &Board {
|
||||||
&self.board
|
&self.board
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[must_use]
|
||||||
|
pub fn active_color(&self) -> Color {
|
||||||
|
self.board.active_color()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Position {
|
impl Position {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue