X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmain.cpp;h=b9d2dfb4ec5f0a2862a9d599185a454d32848bec;hp=2117497f2436be1173235d5e782039feab59677d;hb=298cf150958212e3270182644fd87f5489823b27;hpb=078767d6dfe9a1fec9614634e4e2c493ccabe4bc diff --git a/src/main.cpp b/src/main.cpp index 2117497f..b9d2dfb4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -36,6 +36,7 @@ #include #include "hashprobe.h" #include "hashprobe.grpc.pb.h" +#include "tt.h" using grpc::Server; using grpc::ServerBuilder; @@ -81,13 +82,6 @@ void HashProbeImpl::FillMove(Position *pos, Move move, HashProbeMove* decoded) { if (type_of(move) == CASTLING) { to = make_square(to > from ? FILE_G : FILE_C, rank_of(from)); } - - decoded->set_from_sq(UCI::square(from)); - decoded->set_to_sq(UCI::square(to)); - - if (type_of(move) == PROMOTION) { - decoded->set_promotion(std::string() + " PNBRQK"[promotion_type(move)]); - } Piece moved_piece = pos->moved_piece(move); std::string pretty; @@ -242,7 +236,6 @@ int main(int argc, char* argv[]) { Position::init(); Bitbases::init(); Search::init(); - Pawns::init(); Threads.set(Options["Threads"]); Search::clear(); // After threads are up