resetting killer and history tables on bench and ucinewgame | bench 1146300
This commit is contained in:
1 parent
572b1686b5
commit
29bac3a101
4 files changed
+16
-5
No files matched your search
@@ -1,6 +1,7 @@
|
||||
#include "uci.h"
|
||||
#include <iostream>
|
||||
#include <algorithm>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include "types.h"
|
||||
@@ -112,7 +113,11 @@ void UCILoop(Board &board) {
|
||||
// parse UCI "ucinewgame" command
|
||||
if (input.find("ucinewgame") != std::string::npos) {
|
||||
board.SetByFen(StartingFen);
|
||||
|
||||
// Clearing
|
||||
TT.Clear();
|
||||
std::memset(killerMoves, 0, sizeof(killerMoves));
|
||||
std::memset(historyMoves, 0, sizeof(historyMoves));
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user