完善AI打印

This commit is contained in:
CalciteM 2019-06-23 00:44:39 +08:00
parent 64c50a50be
commit 385210fe37
2 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ void AiThread::run()
ai_ab.alphaBetaPruning(aiDepth);
const char *str = ai_ab.bestMove();
qDebug() << "Computer:" << str;
qDebug() << "Computer:" << str << "\n";
if (strcmp(str, "error!"))
emit command(str);
#ifdef DEBUG

View File

@ -387,9 +387,9 @@ const char *NineChessAi_ab::bestMove()
string moves = "";
for (auto child : rootNode->children) {
if (child->value == rootNode->value)
qDebug() << child->move << ":" << child->value << "(*)";
qDebug() << "[" << child->move << "] " << move2string(child->move) << " : " << child->value << "*";
else
qDebug() << child->move << ":" << child->value;
qDebug() << "[" << child->move << "] " << move2string(child->move) << " : " << child->value;
}
for (auto child : rootNode->children) {