mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Clear transposition table on "ucinewgame"
It seems the standard behaviour as implemented in most engines although UCI protocol does not specify what to do upon "ucinewgame" command. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
dc88cd691f
commit
18505f1fc4
1 changed files with 2 additions and 1 deletions
|
@ -25,6 +25,7 @@
|
||||||
#include "position.h"
|
#include "position.h"
|
||||||
#include "search.h"
|
#include "search.h"
|
||||||
#include "thread.h"
|
#include "thread.h"
|
||||||
|
#include "tt.h"
|
||||||
#include "ucioption.h"
|
#include "ucioption.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
@ -93,7 +94,7 @@ void uci_loop(const string& args) {
|
||||||
go(pos, is);
|
go(pos, is);
|
||||||
|
|
||||||
else if (token == "ucinewgame")
|
else if (token == "ucinewgame")
|
||||||
{ /* Avoid returning "Unknown command" */ }
|
TT.clear();
|
||||||
|
|
||||||
else if (token == "isready")
|
else if (token == "isready")
|
||||||
cout << "readyok" << endl;
|
cout << "readyok" << endl;
|
||||||
|
|
Loading…
Add table
Reference in a new issue