X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsan.cpp;h=b53b2013d009a5ee81fc469f1889ca6ac8135e8e;hb=b5685fc564b81be469c14d7778f16498c5a3ad91;hp=8c26ac0078a5bedaf579c4bc1a7197f6afc22275;hpb=c1b60269a26b2ba1c8882b8f382f0e3e435c1962;p=stockfish diff --git a/src/san.cpp b/src/san.cpp index 8c26ac00..b53b2013 100644 --- a/src/san.cpp +++ b/src/san.cpp @@ -40,8 +40,6 @@ using std::string; namespace { - /// Types - enum Ambiguity { AMBIGUITY_NONE, AMBIGUITY_FILE, @@ -49,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); @@ -144,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, History()); + MovePicker mp = MovePicker(pos, MOVE_NONE, OnePly, H); // Castling moves if (movestr == "O-O-O" || movestr == "O-O-O+") @@ -368,7 +365,7 @@ namespace { if (type_of_piece(pc) == KING) return AMBIGUITY_NONE; - MovePicker mp = MovePicker(pos, false, MOVE_NONE, OnePly, History()); + MovePicker mp = MovePicker(pos, MOVE_NONE, OnePly, H); Move mv, moveList[8]; int n = 0;