![]() |
Cinnamon
1.1
chess engine
|
00001 #ifndef ITERATIVEDEEPING_H_ 00002 #define ITERATIVEDEEPING_H_ 00003 00004 #include "Search.h" 00005 #include "Thread.h" 00006 #include "OpenBook.h" 00007 #include <mutex> 00008 00009 class IterativeDeeping: public Thread , public Search { 00010 public: 00011 IterativeDeeping(); 00012 virtual ~IterativeDeeping(); 00013 virtual void run(); 00014 bool getPonderEnabled(); 00015 void setUseBook(bool); 00016 bool getUseBook(); 00017 void unLock(); 00018 void lock(); 00019 void clearMovesPath(); 00020 void enablePonder(bool); 00021 void setFollowBook(bool b); 00022 void setMaxDepth(int); 00023 private: 00024 int maxDepth; 00025 static const int valWINDOW = 50; 00026 bool useBook; 00027 mutex mutex1; 00028 bool followBook; 00029 OpenBook* openBook; 00030 bool ponderEnabled; 00031 }; 00032 #endif 00033