Disable rand move

This commit is contained in:
CalciteM Team 2019-07-13 09:05:13 +08:00
parent 006a548d69
commit 332f3c181b
2 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,12 @@
#include <QDebug>
#include "aithread.h"
AiThread::AiThread(int id, QObject *parent) : QThread(parent), waiting_(false), aiDepth(2), aiTime(120)
AiThread::AiThread(int id, QObject *parent) :
QThread(parent),
chess_(nullptr),
waiting_(false),
aiDepth(2),
aiTime(120)
{
this->id = id;
@ -25,6 +30,7 @@ AiThread::~AiThread()
void AiThread::setAi(const NineChess &chess)
{
mutex.lock();
this->chess_ = &chess;
ai_ab.setChess(*(this->chess_));

View File

@ -3,7 +3,7 @@
//#define DEBUG
#define RANDOM_MOVE
//#define RANDOM_MOVE
#define DEAL_WITH_HORIZON_EFFECT