Skip to content

Commit d59e5ab

Browse files
authored
SE Tweaks (#85)
Unclear Scaling Behavior. Merging this since it shouldn't regress at high TC. Elo | 12.00 +- 8.26 (95%) SPRT | 40.0+0.40s Threads=1 Hash=64MB LLR | 2.91 (-2.25, 2.89) [0.00, 10.00] Games | N: 2114 W: 567 L: 494 D: 1053 Penta | [11, 229, 524, 262, 31] https://chess.aronpetkovski.com/test/1164/ Elo | 15.72 +- 9.73 (95%) SPRT | 8.0+0.08s Threads=1 Hash=8MB LLR | 2.94 (-2.25, 2.89) [0.00, 10.00] Games | N: 1548 W: 465 L: 395 D: 688 Penta | [12, 154, 381, 206, 21] https://chess.aronpetkovski.com/test/1163/ Additional Tests Done Separately: Elo | 3.19 +- 2.55 (95%) SPRT | 8.0+0.08s Threads=1 Hash=8MB LLR | 2.98 (-2.94, 2.94) [0.00, 5.00] Games | N: 25160 W: 6906 L: 6675 D: 11579 Penta | [343, 2938, 5813, 3117, 369] https://chess.aronpetkovski.com/test/1130/ Elo | 3.66 +- 2.82 (95%) SPRT | 8.0+0.08s Threads=1 Hash=8MB LLR | 2.97 (-2.94, 2.94) [0.00, 8.00] Games | N: 20056 W: 5430 L: 5219 D: 9407 Penta | [250, 2317, 4711, 2472, 278] https://chess.aronpetkovski.com/test/1092/ Elo | 5.16 +- 4.08 (95%) SPRT | 40.0+0.40s Threads=1 Hash=64MB LLR | 2.98 (-2.94, 2.94) [0.00, 8.00] Games | N: 7818 W: 2002 L: 1886 D: 3930 Penta | [29, 894, 1975, 954, 57] https://chess.aronpetkovski.com/test/1064/ Elo | 7.23 +- 5.41 (95%) SPRT | 8.0+0.08s Threads=1 Hash=8MB LLR | 3.02 (-2.94, 2.94) [0.00, 8.00] Games | N: 5578 W: 1531 L: 1415 D: 2632 Penta | [71, 628, 1289, 716, 85] https://chess.aronpetkovski.com/test/1058/ bench 956814
1 parent c2b6987 commit d59e5ab

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

Serendipity/src/main/java/org/shawn/games/Serendipity/AlphaBeta.java

+14-4
Original file line numberDiff line numberDiff line change
@@ -487,13 +487,13 @@ else if (ss.get(-4).staticEval != VALUE_NONE)
487487

488488
int extension = 0;
489489

490-
if (!inSingularSearch && ply > 0 && move.equals(ttMove) && depth > 8
490+
if (!inSingularSearch && ply > 0 && move.equals(ttMove) && depth >= 8
491491
&& Math.abs(currentMoveEntry.getEvaluation()) < MATE_EVAL - 1024
492492
&& (currentMoveEntry.getType().equals(TranspositionTable.NodeType.EXACT)
493493
|| currentMoveEntry.getType().equals(TranspositionTable.NodeType.LOWERBOUND))
494-
&& currentMoveEntry.getDepth() > depth - 2)
494+
&& currentMoveEntry.getDepth() > depth - 4)
495495
{
496-
int singularBeta = currentMoveEntry.getEvaluation() - 3 * depth;
496+
int singularBeta = currentMoveEntry.getEvaluation() - 2 * depth;
497497
int singularDepth = depth / 2;
498498
int moveCountBackup = sse.moveCount;
499499

@@ -504,7 +504,17 @@ else if (ss.get(-4).staticEval != VALUE_NONE)
504504

505505
if (singularValue < singularBeta)
506506
{
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;
508518
}
509519

510520
}

0 commit comments

Comments
 (0)