每一着的停顿时间由100ms改为500ms

This commit is contained in:
CalciteM 2019-07-31 01:43:15 +08:00
parent 2dfc52bf71
commit e52021d80b
1 changed files with 2 additions and 2 deletions

View File

@ -126,12 +126,12 @@ void AiThread::run()
if (ai_ab.alphaBetaPruning(aiDepth) == 3) {
qDebug() << "Draw\n";
strCommand = "draw";
QTimer::singleShot(100, this, &AiThread::emitCommand);
QTimer::singleShot(500, this, &AiThread::emitCommand);
} else {
strCommand = ai_ab.bestMove();
qDebug() << "Computer:" << strCommand << "\n";
if (strcmp(strCommand, "error!"))
QTimer::singleShot(100, this, &AiThread::emitCommand);
QTimer::singleShot(500, this, &AiThread::emitCommand);
}
#ifdef DEBUG_MODE