We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 888023a commit 2f30b03Copy full SHA for 2f30b03
projects/lib/src/uciengine.cpp
@@ -153,9 +153,11 @@ void UciEngine::startGame()
153
154
if (m_sendOpponentsName)
155
{
156
+ QString opRating = opponent()->rating() ?
157
+ QString::number(opponent()->rating()) : "none";
158
QString opType = opponent()->isHuman() ? "human" : "computer";
- QString value = QString("none none %1 %2")
- .arg(opType, opponent()->name());
159
+ QString value = QString("none %1 %2 %3")
160
+ .arg(opRating, opType, opponent()->name());
161
sendOption("UCI_Opponent", value);
162
}
163
0 commit comments