From 58514844a85eaa339e209ffdda7068f56bcb8277 Mon Sep 17 00:00:00 2001 From: Baptiste Fouques Date: Tue, 17 Jan 2023 14:22:43 +0100 Subject: [PATCH] provide position from game --- chess_uci/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) 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