introduced TTable class
This commit is contained in:
1 parent
9622a28db5
commit
e9f5a15d6b
6 files changed
+42
-17
No files matched your search
+2
-2
@@ -160,7 +160,7 @@ void ParseGo(Board &board, std::string &command) {
|
||||
static void SetOption(std::string &command) {
|
||||
if (command.find("Hash") != std::string::npos) {
|
||||
hashSize = (ReadParam("value", command) * 1000000) / sizeof(TTEntry);
|
||||
TTable.resize(hashSize);
|
||||
TT.Resize(hashSize);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -208,7 +208,7 @@ void UCILoop(Board &board) {
|
||||
// parse UCI "ucinewgame" command
|
||||
if (input.find("ucinewgame") != std::string::npos) {
|
||||
board.SetByFen(StartingFen);
|
||||
TTable.clear();
|
||||
TT.Clear();
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user