aboutsummaryrefslogtreecommitdiff
path: root/src/board/mod.rs
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-01-24 23:37:57 +0300
committereug-vs <eugene@eug-vs.xyz>2023-01-24 23:37:57 +0300
commitf5b2d63f2f1131c23d26360c98d7db44d9efb71d (patch)
treec5affd9ba172aec2f11cfbf43573fc402839f30b /src/board/mod.rs
parented12bd22248e78ad28157ededfed2be63e2d5062 (diff)
downloadchessnost-f5b2d63f2f1131c23d26360c98d7db44d9efb71d.tar.gz
feat: gather principal variation in negamax
Diffstat (limited to 'src/board/mod.rs')
-rw-r--r--src/board/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/board/mod.rs b/src/board/mod.rs
index 5e2f4e3..d339f1d 100644
--- a/src/board/mod.rs
+++ b/src/board/mod.rs
@@ -123,7 +123,7 @@ impl Board {
}
/// Color to move at this ply
- fn color(&self) -> Color {
+ pub fn color(&self) -> Color {
Color::from(self.ply as u8 % 2)
}