Bläddra i källkod

fix mate problem

Nicolas Winkler 2 år sedan
förälder
incheckning
6740646813
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/engine.rs

+ 1 - 1
src/engine.rs

@@ -313,7 +313,7 @@ impl Engine {
                     let infostring = format!("info depth {} score mate {} time {} nodes {} nps {} hashfull {} pv{}", depth, turns, elapsed.as_millis(), nodes, nps, hashfull, pv);
                     println!("{}", infostring);
                     info!("{}", infostring);
-                    if si.depth.is_none() {
+                    if si.depth.is_none() && plies.abs() * 2 <= depth {
                         break;
                     }
                 }