File tree 1 file changed +14
-4
lines changed
Serendipity/src/main/java/org/shawn/games/Serendipity
1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -487,13 +487,13 @@ else if (ss.get(-4).staticEval != VALUE_NONE)
487
487
488
488
int extension = 0 ;
489
489
490
- if (!inSingularSearch && ply > 0 && move .equals (ttMove ) && depth > 8
490
+ if (!inSingularSearch && ply > 0 && move .equals (ttMove ) && depth >= 8
491
491
&& Math .abs (currentMoveEntry .getEvaluation ()) < MATE_EVAL - 1024
492
492
&& (currentMoveEntry .getType ().equals (TranspositionTable .NodeType .EXACT )
493
493
|| currentMoveEntry .getType ().equals (TranspositionTable .NodeType .LOWERBOUND ))
494
- && currentMoveEntry .getDepth () > depth - 2 )
494
+ && currentMoveEntry .getDepth () > depth - 4 )
495
495
{
496
- int singularBeta = currentMoveEntry .getEvaluation () - 3 * depth ;
496
+ int singularBeta = currentMoveEntry .getEvaluation () - 2 * depth ;
497
497
int singularDepth = depth / 2 ;
498
498
int moveCountBackup = sse .moveCount ;
499
499
@@ -504,7 +504,17 @@ else if (ss.get(-4).staticEval != VALUE_NONE)
504
504
505
505
if (singularValue < singularBeta )
506
506
{
507
- extension = 2 ;
507
+ extension = 1 ;
508
+
509
+ if (!isPV )
510
+ {
511
+ extension = 2 ;
512
+ }
513
+ }
514
+
515
+ else if (singularValue > beta )
516
+ {
517
+ return singularValue ;
508
518
}
509
519
510
520
}
You can’t perform that action at this time.
0 commit comments