mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 12:07:43 +00:00
Fixed a bug that Learner::qsearch() recognizes stalemate as checkmated.
This commit is contained in:
@@ -1483,12 +1483,3 @@ PieceNumber Position::piece_no_of(Square sq) const
|
||||
return n;
|
||||
}
|
||||
#endif // defined(EVAL_NNUE)
|
||||
|
||||
#if defined(EVAL_LEARN)
|
||||
// 現局面で指し手がないかをテストする。指し手生成ルーチンを用いるので速くない。探索中には使わないこと。
|
||||
bool Position::is_mated() const
|
||||
{
|
||||
// 不成で詰めろを回避できるパターンはないのでLEGAL_ALLである必要はない。
|
||||
return MoveList<LEGAL>(*this).size() == 0;
|
||||
}
|
||||
#endif // EVAL_LEARN
|
||||
|
||||
Reference in New Issue
Block a user