From 4a62a723f052ed0506cf9342c009cc315a8379a3 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Tue, 24 Jan 2023 20:55:21 +0300 Subject: bench: setup perft benchmarking --- src/board.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/board.rs') 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 } -- cgit v1.2.3