CuckooChess: Back-ported Texel improvements to CuckooChess. +24 ELO against previous version after 1894 games at 60/6 time control.

This commit is contained in:
Peter Osterlund
2012-07-15 10:39:23 +00:00
parent 6861e6d266
commit ab87bb9ae8
12 changed files with 292 additions and 185 deletions

View File

@@ -20,6 +20,7 @@ package uci;
import chess.Book;
import chess.ComputerPlayer;
import chess.History;
import chess.Move;
import chess.MoveGen;
import chess.Parameters;
@@ -51,6 +52,7 @@ public class EngineControl {
private final Object threadMutex;
Search sc;
TranspositionTable tt;
History ht;
MoveGen moveGen;
Position pos;
@@ -120,6 +122,7 @@ public class EngineControl {
this.os = os;
threadMutex = new Object();
setupTT();
ht = new History();
moveGen = new MoveGen();
}
@@ -163,6 +166,7 @@ public class EngineControl {
final public void newGame() {
randomSeed = new Random().nextLong();
tt.clear();
ht.init();
}
/**
@@ -222,7 +226,7 @@ public class EngineControl {
final private void startThread(final int minTimeLimit, final int maxTimeLimit,
int maxDepth, final int maxNodes) {
synchronized (threadMutex) {} // Must not start new search until old search is finished
sc = new Search(pos, posHashList, posHashListSize, tt);
sc = new Search(pos, posHashList, posHashListSize, tt, ht);
sc.timeLimit(minTimeLimit, maxTimeLimit);
sc.setListener(new SearchListener(os));
sc.setStrength(strength, randomSeed);