소스 검색

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;
                     }
                 }