Skip to content

Commit

Permalink
Issue starting and final FEN of a PV when warning of an illegal PV mo…
Browse files Browse the repository at this point in the history
…ve (UCI)

Resolves cutechess#649
  • Loading branch information
alwey committed Jan 22, 2022
1 parent 9249b27 commit d01a506
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects/lib/src/uciengine.cpp
Expand Up @@ -821,6 +821,7 @@ QString UciEngine::directPv(const QVarLengthArray<QStringRef>& tokens)
QString UciEngine::sanPv(const QVarLengthArray<QStringRef>& tokens)
{
Chess::Board* board = this->board();
QString fen = board->fenString();
QString pv;
int movesMade = 0;

Expand All @@ -843,6 +844,9 @@ QString UciEngine::sanPv(const QVarLengthArray<QStringRef>& tokens)
qWarning("PV: %s %s",
qUtf8Printable(pv),
qUtf8Printable(tokenString));
qWarning("PV from FEN: %s", qUtf8Printable(fen));
qWarning("Current FEN: %s",
qUtf8Printable(board->fenString()));
break;
}
if (!pv.isEmpty())
Expand Down

0 comments on commit d01a506

Please sign in to comment.