X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsan.cpp;h=fad47f9573a0d63b66b94b32b00c1aa0fcccf39b;hp=0429830c37c7baa6fca2429511fda84749fbf5a7;hb=b8ab5d533b8e7e3b12d6768745f407f7f9f8f434;hpb=e1ed67aacbe7fb4b462b9141d3137bed0a3ea70b diff --git a/src/san.cpp b/src/san.cpp index 0429830c..fad47f95 100644 --- a/src/san.cpp +++ b/src/san.cpp @@ -28,6 +28,7 @@ #include #include +#include "history.h" #include "movepick.h" #include "san.h" @@ -39,8 +40,6 @@ using std::string; namespace { - /// Types - enum Ambiguity { AMBIGUITY_NONE, AMBIGUITY_FILE, @@ -48,8 +47,7 @@ namespace { AMBIGUITY_BOTH }; - - /// Functions + const History H; // used as dummy argument for MovePicker c'tor Ambiguity move_ambiguity(const Position& pos, Move m); const string time_string(int milliseconds); @@ -143,7 +141,7 @@ Move move_from_san(const Position& pos, const string& movestr) { assert(pos.is_ok()); - MovePicker mp = MovePicker(pos, false, MOVE_NONE, OnePly); + MovePicker mp = MovePicker(pos, false, MOVE_NONE, OnePly, H); // Castling moves if (movestr == "O-O-O" || movestr == "O-O-O+") @@ -367,7 +365,7 @@ namespace { if (type_of_piece(pc) == KING) return AMBIGUITY_NONE; - MovePicker mp = MovePicker(pos, false, MOVE_NONE, OnePly); + MovePicker mp = MovePicker(pos, false, MOVE_NONE, OnePly, H); Move mv, moveList[8]; int n = 0;