mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Stop search if only 1 legal move
There is no point searching a move that is forced. It wastes time while allowing computer opponents to fill hash with 100% accuracy. [edit: Condition moved together with "easy move" ones] Bench identical: 4922272
This commit is contained in:
parent
def50020ad
commit
3ce43c20de
1 changed files with 1 additions and 0 deletions
|
@ -452,6 +452,7 @@ namespace {
|
||||||
&& !stop
|
&& !stop
|
||||||
&& PVSize == 1
|
&& PVSize == 1
|
||||||
&& ( (bestMoveNeverChanged && recapture)
|
&& ( (bestMoveNeverChanged && recapture)
|
||||||
|
|| RootMoves.size() == 1
|
||||||
|| Time::now() - SearchTime > (TimeMgr.available_time() * 40) / 100))
|
|| Time::now() - SearchTime > (TimeMgr.available_time() * 40) / 100))
|
||||||
{
|
{
|
||||||
Value rBeta = bestValue - 2 * PawnValueMg;
|
Value rBeta = bestValue - 2 * PawnValueMg;
|
||||||
|
|
Loading…
Add table
Reference in a new issue