All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
speculativeModel.h
Go to the documentation of this file.
1 /* speculativeModel.h
2  */
3 #ifndef OSL_SPECULATIVEMODEL_H
4 #define OSL_SPECULATIVEMODEL_H
5 
8 #include <boost/shared_ptr.hpp>
9 
10 namespace osl
11 {
12  namespace game_playing
13  {
14  class SearchPlayer;
19  {
20  public:
21  virtual ~SpeculativeModel();
22 
23  virtual void setMaxThreads(int);
24 
25  virtual void startSpeculative(const boost::shared_ptr<GameState> state,
26  const SearchPlayer& main_player)=0;
27  virtual void stopOtherThan(Move)=0;
28  virtual void stopAll()=0;
29  virtual const HashKey searchState() const=0;
30 
34  virtual const MoveWithComment waitResult(Move last_move, search::TimeAssigned,
35  SearchPlayer& main_player,
36  int byoyomi)=0;
37 
38  virtual void selectBestMoveCleanUp()=0;
39  void clearResource();
40  };
41  } // game_playing
42 } // osl
43 
44 #endif /* OSL_SPECULATIVEMODEL_H */
45 // ;;; Local Variables:
46 // ;;; mode:c++
47 // ;;; c-basic-offset:2
48 // ;;; End: