Skip to content

Commit

Permalink
Release 3.7b
Browse files Browse the repository at this point in the history
  • Loading branch information
bagaturchess committed Mar 25, 2023
1 parent 7d71ae0 commit 1cb9a4c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ public final class MoveGenerator {
private final ContinuationHistory[] BF_ContinuationHistory = new ContinuationHistory[2];


private long counter_sorting;

private Random randomizer = new Random();

private int root_search_first_move_index;
Expand Down Expand Up @@ -695,12 +697,14 @@ public void sort() {
final int start_index = nextToMove[currentPly];
final int end_index = nextToGenerate[currentPly] - 1;

//Randomize non attacks only
if (MoveUtil.isQuiet(moves[start_index])) {
//Randomize each 3 sortings
//In order to increase the effect of nondeterminism, ensure first ordering is randomized.
if (counter_sorting == 0 || counter_sorting % 5 == 0) {

randomize(moveScores, moves, start_index, end_index);
}


for (int i = start_index, j = i; i < end_index; j = ++i) {
final long score = moveScores[i + 1];
final int move = moves[i + 1];
Expand Down Expand Up @@ -740,6 +744,9 @@ public void sort() {
moves[start_index] = move;
}
}


counter_sorting++;
}


Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Version 3.7b (25 March 2023)
* Less aggressive randomization of move order before sorting.

Version 3.7a (18 February 2023)
* Change the condition for randomizing the non-attacking moves. Now they are always randomized.

Expand Down
2 changes: 1 addition & 1 deletion Sources/UCI/src/bagaturchess/uci/impl/Protocol.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
public class Protocol {


public static final String COMMAND_TO_GUI_ID_VERSION_STR = "3.7a";
public static final String COMMAND_TO_GUI_ID_VERSION_STR = "3.7b";

public static final String COMMAND_TO_ENGINE_UCI_STR = "uci";
public static final String COMMAND_TO_ENGINE_ISREADY_STR = "isready";
Expand Down

0 comments on commit 1cb9a4c

Please sign in to comment.