From 5390756aa46b1ae2cf1e274af8f2fdc24ed8009c Mon Sep 17 00:00:00 2001 From: eug-vs Date: Mon, 4 Sep 2023 04:57:02 +0300 Subject: fix: never panic in search, return option instead Will Result type be better? --- benches/search.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'benches') 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(); -- cgit v1.2.3