Skip to content

Commit 14f9f5b

Browse files
authoredMay 30, 2024
Improve Draw Detection (#71)
Elo | 0.32 +- 2.58 (95%) SPRT | 8.0+0.08s Threads=1 Hash=8MB LLR | 2.98 (-3.86, 2.98) [-4.00, 1.00] Games | N: 35484 W: 9103 L: 9070 D: 17311 Penta | [610, 4149, 8171, 4222, 590] https://chess.aronpetkovski.com/test/242/ bench 977698
1 parent ae64c9c commit 14f9f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ private int mainSearch(Board board, int depth, int alpha, int beta, int ply, boo
279279
throw new TimeOutException();
280280
}
281281

282-
if ((board.isRepetition(2) && ply > 0) || board.isRepetition(3) || board.getHalfMoveCounter() > 100)
282+
if (ply > 0 && (board.isRepetition(2) || board.getHalfMoveCounter() > 100 || board.isInsufficientMaterial()))
283283
{
284284
return DRAW_EVAL;
285285
}

0 commit comments

Comments
 (0)