aboutsummaryrefslogtreecommitdiff
path: root/benches
diff options
context:
space:
mode:
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));
}