diff --git a/chess_uci/src/lib.rs b/chess_uci/src/lib.rs index 381edeb..5f00a53 100644 --- a/chess_uci/src/lib.rs +++ b/chess_uci/src/lib.rs @@ -214,5 +214,9 @@ impl UciEngine { pub fn color_on(&self, square: Square) -> Option { self.game.current_position().color_on(square) } + + pub fn current_position(&self) -> Board { + self.game.current_position() + } } // LocalWords: uci