aboutsummaryrefslogtreecommitdiff
path: root/src/board.rs
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-01-24 20:55:21 +0300
committereug-vs <eugene@eug-vs.xyz>2023-01-24 20:55:21 +0300
commit4a62a723f052ed0506cf9342c009cc315a8379a3 (patch)
tree2ba5bb20d17776268259fc9d446a52ba0f9dd1d0 /src/board.rs
parent36c8c6bd84513fe2a8c9956b842baaee510b25c0 (diff)
downloadchessnost-4a62a723f052ed0506cf9342c009cc315a8379a3.tar.gz
bench: setup perft benchmarking
Diffstat (limited to 'src/board.rs')
-rw-r--r--src/board.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/board.rs b/src/board.rs
index 3343702..9ff81b1 100644
--- a/src/board.rs
+++ b/src/board.rs
@@ -501,7 +501,7 @@ impl Board {
self.ply -= 1;
}
- fn perft(&mut self, depth: u8, print: bool) -> (u64, u64, u64, u64, u64) {
+ pub fn perft(&mut self, depth: u8, print: bool) -> (u64, u64, u64, u64, u64) {
if depth == 0 {
return (1, 0, 0, 0, 0) // This a leaf, exactly one node
}