aboutsummaryrefslogtreecommitdiff
path: root/benches
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-09-04 04:57:02 +0300
committereug-vs <eugene@eug-vs.xyz>2023-09-04 04:57:02 +0300
commit5390756aa46b1ae2cf1e274af8f2fdc24ed8009c (patch)
tree6eeb59c5a075fe00932c1f8f3e7c0bac4bf2c874 /benches
parent269a7383a5d11ca481c037c261459d0f0cb67013 (diff)
downloadchessnost-5390756aa46b1ae2cf1e274af8f2fdc24ed8009c.tar.gz
fix: never panic in search, return option instead
Will Result type be better?
Diffstat (limited to 'benches')
-rw-r--r--benches/search.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/benches/search.rs b/benches/search.rs
index 89c59d5..926f5c3 100644
--- a/benches/search.rs
+++ b/benches/search.rs
@@ -7,7 +7,7 @@ fn main() {
let mut gm = Grossmeister::new(board);
let start = Instant::now();
- let (score, pv) = gm.iterative_deepening(8);
+ let (score, pv) = gm.iterative_deepening(8).unwrap();
println!("Finished in {:?}: score={:?} {:?}", start.elapsed(), score, pv);
gm.board.print();