mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +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:
parent
471e745a91
commit
977cd9520a
1 changed files with 4 additions and 0 deletions
|
@ -234,6 +234,9 @@ namespace {
|
||||||
// better than the second best move.
|
// better than the second best move.
|
||||||
const Value EasyMoveMargin = Value(0x200);
|
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)
|
// Last seconds noise filtering (LSN)
|
||||||
const bool UseLSNFiltering = true;
|
const bool UseLSNFiltering = true;
|
||||||
const int LSNTime = 4000; // In milliseconds
|
const int LSNTime = 4000; // In milliseconds
|
||||||
|
@ -1363,6 +1366,7 @@ namespace {
|
||||||
if ( TM.active_threads() > 1
|
if ( TM.active_threads() > 1
|
||||||
&& bestValue < beta
|
&& bestValue < beta
|
||||||
&& depth >= MinimumSplitDepth
|
&& depth >= MinimumSplitDepth
|
||||||
|
&& (PvNode || moveCount > MaximumSplitMove * MinimumSplitDepth / depth)
|
||||||
&& Iteration <= 99
|
&& Iteration <= 99
|
||||||
&& TM.available_thread_exists(threadID)
|
&& TM.available_thread_exists(threadID)
|
||||||
&& !AbortSearch
|
&& !AbortSearch
|
||||||
|
|
Loading…
Add table
Reference in a new issue