provide position from game

This commit is contained in:
Baptiste Fouques 2023-01-17 14:22:43 +01:00
parent a65678343a
commit 58514844a8
1 changed files with 4 additions and 0 deletions

View File

@ -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