You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added ClearChunk to TT that allows to delete a rolling sub-sectin of the TT.
Root moves are added to the TT with a special depth (9999) that protects them against being overwritten and allows them to overwrite history moves (9998) so that the PV extraction always includes at least one move.
ExtractPV from TT is now more sophisticated and stops on a repetition and sets a boolean flag so that the search can handle the upcoming 3-fold-repetition.
Reduced the security margin from 20ms to 15ms in the TimeControl and added a dynamic compoment based on the Sqrt() of the remaining time.
Bumped version to 0.5.2
Copy file name to clipboardExpand all lines: MinimalChessEngine/Engine.cs
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -92,10 +92,11 @@ private void StartSearch(int maxDepth, int maxNodes)
92
92
//do the first iteration. it's cheap, no time check, no thread
93
93
Uci.Log($"Search scheduled to take {_time.TimePerMoveWithMargin}ms!");
94
94
95
-
Transpositions.Clear();
95
+
//clear a rolling quarter of the TT so that it doesn't get filled with high-depth but obsolete old positions
96
+
Transpositions.ClearChunk(_history.Count,8);
96
97
//add all history positions with a score of 0 (Draw through 3-fold repetition) and freeze them by setting a depth that is never going to be overwritten
0 commit comments