X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=23370ca3f73d4ed8fedbd14595c8b30af2b332b7;hp=bdbfea8017583fe3b8ca432738bc54a6dec886af;hb=888a1d34454121c3682cbd68751bcebeca8bd308;hpb=8b88ca901779524ef17cb26c1278cb54ea3be6ae diff --git a/src/position.cpp b/src/position.cpp index bdbfea80..23370ca3 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -25,7 +25,6 @@ #include "bitcount.h" #include "movegen.h" -#include "notation.h" #include "position.h" #include "psqtab.h" #include "rkiss.h" @@ -430,17 +429,12 @@ const string Position::fen() const { } -/// Position::pretty() returns an ASCII representation of the position to be -/// printed to the standard output together with the move's san notation. +/// Position::pretty() returns an ASCII representation of the position -const string Position::pretty(Move m) const { +const string Position::pretty() const { std::ostringstream ss; - if (m) - ss << "\nMove: " << (sideToMove == BLACK ? ".." : "") - << move_to_san(*const_cast(this), m); - ss << "\n +---+---+---+---+---+---+---+---+\n"; for (Rank r = RANK_8; r >= RANK_1; --r) @@ -457,10 +451,6 @@ const string Position::pretty(Move m) const { for (Bitboard b = checkers(); b; ) ss << to_string(pop_lsb(&b)) << " "; - ss << "\nLegal moves: "; - for (MoveList it(*this); *it; ++it) - ss << move_to_san(*const_cast(this), *it) << " "; - return ss.str(); }