diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-01-24 23:37:57 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-01-24 23:37:57 +0300 |
commit | f5b2d63f2f1131c23d26360c98d7db44d9efb71d (patch) | |
tree | c5affd9ba172aec2f11cfbf43573fc402839f30b /src/board/mod.rs | |
parent | ed12bd22248e78ad28157ededfed2be63e2d5062 (diff) | |
download | chessnost-f5b2d63f2f1131c23d26360c98d7db44d9efb71d.tar.gz |
feat: gather principal variation in negamax
Diffstat (limited to 'src/board/mod.rs')
-rw-r--r-- | src/board/mod.rs | 2 |
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) } |