provide position from game
This commit is contained in:
parent
a65678343a
commit
58514844a8
|
@ -214,5 +214,9 @@ impl<Fi: Read, Fo: Write> UciEngine<Fi, Fo> {
|
||||||
pub fn color_on(&self, square: Square) -> Option<Color> {
|
pub fn color_on(&self, square: Square) -> Option<Color> {
|
||||||
self.game.current_position().color_on(square)
|
self.game.current_position().color_on(square)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn current_position(&self) -> Board {
|
||||||
|
self.game.current_position()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// LocalWords: uci
|
// LocalWords: uci
|
||||||
|
|
Loading…
Reference in New Issue