Disable rand move
This commit is contained in:
parent
006a548d69
commit
332f3c181b
|
@ -1,7 +1,12 @@
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include "aithread.h"
|
#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;
|
this->id = id;
|
||||||
|
|
||||||
|
@ -25,6 +30,7 @@ AiThread::~AiThread()
|
||||||
void AiThread::setAi(const NineChess &chess)
|
void AiThread::setAi(const NineChess &chess)
|
||||||
{
|
{
|
||||||
mutex.lock();
|
mutex.lock();
|
||||||
|
|
||||||
this->chess_ = &chess;
|
this->chess_ = &chess;
|
||||||
ai_ab.setChess(*(this->chess_));
|
ai_ab.setChess(*(this->chess_));
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
//#define DEBUG
|
//#define DEBUG
|
||||||
|
|
||||||
#define RANDOM_MOVE
|
//#define RANDOM_MOVE
|
||||||
|
|
||||||
#define DEAL_WITH_HORIZON_EFFECT
|
#define DEAL_WITH_HORIZON_EFFECT
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue