diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-09-04 04:57:02 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-09-04 04:57:02 +0300 |
commit | 5390756aa46b1ae2cf1e274af8f2fdc24ed8009c (patch) | |
tree | 6eeb59c5a075fe00932c1f8f3e7c0bac4bf2c874 /benches/search.rs | |
parent | 269a7383a5d11ca481c037c261459d0f0cb67013 (diff) | |
download | chessnost-5390756aa46b1ae2cf1e274af8f2fdc24ed8009c.tar.gz |
fix: never panic in search, return option instead
Will Result type be better?
Diffstat (limited to 'benches/search.rs')
-rw-r--r-- | benches/search.rs | 2 |
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(); |