X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fposition.cpp;h=abac6efc1ef56e4b57a22734558c5d1c3564348a;hb=20390fcb3c89160f748881f8ecd9a7706c9e9525;hp=58884c37f42cb4ee778c9b0a889303b16d6a7b65;hpb=93bc05cf693064b80bf70cb97c6d110ab8f0a015;p=stockfish diff --git a/src/position.cpp b/src/position.cpp index 58884c37..abac6efc 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -39,6 +39,8 @@ //// Variables //// +extern SearchStack EmptySearchStack; + int Position::castleRightsMask[64]; Key Position::zobrist[2][8][64]; @@ -273,9 +275,8 @@ void Position::print(Move m) const { std::cout << std::endl; if (m != MOVE_NONE) { - Position p(*this); std::string col = (color_of_piece_on(move_from(m)) == BLACK ? ".." : ""); - std::cout << "Move is: " << col << move_to_san(p, m) << std::endl; + std::cout << "Move is: " << col << move_to_san(*this, m) << std::endl; } for (Rank rank = RANK_8; rank >= RANK_1; rank--) {