瀏覽代碼

fix mate problem

Nicolas Winkler 2 年之前
父節點
當前提交
6740646813
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
                     }
                 }