完善AI打印
This commit is contained in:
parent
64c50a50be
commit
385210fe37
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue