|
@@ -131,7 +131,7 @@ pub fn search(game: &mut Game, sc: &mut SearchControl, hash: &mut Cache, mut alp
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-pub fn negamax(game: &mut Game, sc: &mut SearchControl, hash: &mut Cache, mut alpha: PosValue, mut beta: PosValue, depth: i32) -> PosValue {
|
|
|
+pub fn negamax(game: &mut Game, sc: &mut SearchControl, hash: &mut Cache, mut alpha: PosValue, beta: PosValue, depth: i32) -> PosValue {
|
|
|
|
|
|
let cache_entry = hash.lookup(game);
|
|
|
|
|
@@ -167,7 +167,7 @@ pub fn negamax(game: &mut Game, sc: &mut SearchControl, hash: &mut Cache, mut al
|
|
|
}
|
|
|
|
|
|
let ply_depth = (sc.initial_depth - depth) as usize;
|
|
|
- let mut moves = generate_legal_sorted_moves(
|
|
|
+ let moves = generate_legal_sorted_moves(
|
|
|
game,
|
|
|
hash,
|
|
|
&sc.killer_moves[ply_depth],
|