From 54d9c3838dd7da7204fbf14c98e98438fbc3a835 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 21 Jun 2025 21:08:32 -0700 Subject: [PATCH] [position] Export Position::active_color() Passes through to the Board method. --- position/src/position.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/position/src/position.rs b/position/src/position.rs index d34ce4e..e318374 100644 --- a/position/src/position.rs +++ b/position/src/position.rs @@ -53,6 +53,11 @@ impl Position { pub fn board(&self) -> &Board { &self.board } + + #[must_use] + pub fn active_color(&self) -> Color { + self.board.active_color() + } } impl Position {