aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/board/engine.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/board/engine.rs b/src/board/engine.rs
index 1516784..ad2b3b2 100644
--- a/src/board/engine.rs
+++ b/src/board/engine.rs
@@ -370,13 +370,13 @@ impl Board {
None => {},
}
- let mut moves = self.generate_pseudolegal_moves(color);
- moves = self.order_moves(moves, parent_killers.to_vec());
-
if depth_left == 0 {
return (self.quiscence(alpha, beta), principal_variation);
}
+ let mut moves = self.generate_pseudolegal_moves(color);
+ moves = self.order_moves(moves, parent_killers.to_vec());
+
let mut should_pv_search = true;
let mut legal_move_found = false;
for mov in moves {