Skip to content

Commit 34316be

Browse files
committed
Issue starting and final FEN of a PV when warning of an illegal PV move (UCI)
Resolves #649
1 parent 6779813 commit 34316be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

projects/lib/src/uciengine.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,7 @@ QString UciEngine::directPv(const QVarLengthArray<QStringRef>& tokens)
815815
QString UciEngine::sanPv(const QVarLengthArray<QStringRef>& tokens)
816816
{
817817
Chess::Board* board = this->board();
818+
QString fen = board->fenString();
818819
QString pv;
819820
int movesMade = 0;
820821

@@ -837,6 +838,9 @@ QString UciEngine::sanPv(const QVarLengthArray<QStringRef>& tokens)
837838
qWarning("PV: %s %s",
838839
qUtf8Printable(pv),
839840
qUtf8Printable(tokenString));
841+
qWarning("PV from FEN: %s", qUtf8Printable(fen));
842+
qWarning("Current FEN: %s",
843+
qUtf8Printable(board->fenString()));
840844
break;
841845
}
842846
if (!pv.isEmpty())

0 commit comments

Comments
 (0)