diff --git a/src/perfect/mill.cpp b/src/perfect/mill.cpp index c13cc262..0a021d3e 100644 --- a/src/perfect/mill.cpp +++ b/src/perfect/mill.cpp @@ -380,6 +380,10 @@ void Mill::getComputersChoice(unsigned int *pushFrom, unsigned int *pushTo) } } + if (*pushFrom == 24 && *pushTo == 24) { + assert(false); + } + theField.deleteBoard(); } diff --git a/src/perfect/mill.h b/src/perfect/mill.h index e630a39b..fd332dd2 100644 --- a/src/perfect/mill.h +++ b/src/perfect/mill.h @@ -15,7 +15,7 @@ #include #include "millAI.h" -#include "types.h" +#include "../types.h" using namespace std; diff --git a/src/perfect/perfect.cpp b/src/perfect/perfect.cpp index c60f7d51..1072b7fb 100644 --- a/src/perfect/perfect.cpp +++ b/src/perfect/perfect.cpp @@ -127,7 +127,6 @@ Move perfect_search() //sync_cout << "========================" << sync_endl; mill->getComputersChoice(&from, &to); - assert(!(from == 24 && to == 24)); ret = mill->doMove(from, to); assert(ret == true); diff --git a/src/thread.cpp b/src/thread.cpp index cf3b8a29..22a683b5 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -137,7 +137,6 @@ void Thread::idle_loop() clearTT(); #ifdef PERFECT_AI - rootPos; bestMove = perfect_search(); assert(bestMove != MOVE_NONE); strCommand = nextMove();