加入 SELF_MOVE 宏相关代码

启用后一启动,再点开始按钮开始不开启随机的情况下自对弈。
This commit is contained in:
Calcitem 2020-10-03 12:11:58 +08:00
parent 6dc589669f
commit 7a99164111
3 changed files with 15 additions and 0 deletions

View File

@ -28,6 +28,8 @@
#define QT_UI
//#define SELF_MOVE
//#define MOBILE_APP_UI
//#define TRAINING_MODE
@ -104,6 +106,10 @@
#define DONOT_PLAY_SOUND
#endif
#ifdef SELF_MOVE
#define DONOT_PLAY_SOUND
#endif
//#define DONOT_PLAY_SOUND
#ifdef DEBUG_MODE

View File

@ -57,7 +57,11 @@ private:
bool isAutoRestart { false };
bool isAutoChangeFirstMove { false };
bool resignIfMostLose { false };
#ifdef SELF_MOVE
bool randomMoveEnabled { false };
#else
bool randomMoveEnabled { true };
#endif
#ifdef ENDGAME_LEARNING_FORCE
bool learnEndgame { true };
#else

View File

@ -209,6 +209,11 @@ void MillGameWindow::initialize()
//ui.actionEngine2_R->setChecked(false);
#endif // TEST_MODE
#ifdef SELF_MOVE
ui.actionEngine1_T->setChecked(true);
ui.actionEngine2_R->setChecked(true);
#endif // SELF_MOVE
connect(ui.actionSound_S, SIGNAL(toggled(bool)),
gameController, SLOT(setSound(bool)));