aboutsummaryrefslogtreecommitdiff
path: root/benches
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-01-25 05:18:38 +0300
committereug-vs <eugene@eug-vs.xyz>2023-01-25 05:18:38 +0300
commit3522398f7a456b400dc48de4c202a013490cd4fc (patch)
treefab5655517165e403a0c0965377f38306cc2b155 /benches
parent46b862a25203cb492dd45ba1696a28338a42065b (diff)
downloadchessnost-3522398f7a456b400dc48de4c202a013490cd4fc.tar.gz
feat: use transposition table in negamax
Diffstat (limited to 'benches')
-rw-r--r--benches/negamax.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/benches/negamax.rs b/benches/negamax.rs
index 33c90ea..0c952d6 100644
--- a/benches/negamax.rs
+++ b/benches/negamax.rs
@@ -8,13 +8,14 @@ fn main() {
let depth = 4;
let start = Instant::now();
- let (eval, pv) = board.negamax_search(-INFINITY, INFINITY, depth);
- println!("Negamax search (depth = {}) finished in {:?}: {:?}", depth, start.elapsed(), eval);
+ let (score, pv) = board.negamax_search(-INFINITY, INFINITY, depth);
+ println!("Negamax search (depth = {}) finished in {:?}: {:?}", depth, start.elapsed(), score);
board.print();
for mov in pv {
println!("{:?}", mov);
- println!("Eval for {:?}: {}", board.color(), board.evaluate(None));
+ println!("Score for {:?}: {}", board.color(), board.evaluate(None));
board.make_move(mov);
board.print();
}
+ println!("Score for {:?}: {}", board.color(), board.evaluate(None));
}