1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-29 16:23:09 +00:00

Simple implementation of strong YBWC

No gain in the worst case of 2 threads, but also no
loss and good potential for QUAD or OCTAL machines.

After 922 games at 1+0 with 2 threads

Mod vs Orig +143 =533 -143 +0 ELO

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2010-05-13 10:06:27 +02:00
parent 471e745a91
commit 977cd9520a

View file

@ -234,6 +234,9 @@ namespace {
// better than the second best move.
const Value EasyMoveMargin = Value(0x200);
// Maximum number of moves to try before to split (strong YBWC)
const int MaximumSplitMove = 3;
// Last seconds noise filtering (LSN)
const bool UseLSNFiltering = true;
const int LSNTime = 4000; // In milliseconds
@ -1363,6 +1366,7 @@ namespace {
if ( TM.active_threads() > 1
&& bestValue < beta
&& depth >= MinimumSplitDepth
&& (PvNode || moveCount > MaximumSplitMove * MinimumSplitDepth / depth)
&& Iteration <= 99
&& TM.available_thread_exists(threadID)
&& !AbortSearch