usiResponse.h Source File

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
usiResponse.h
Go to the documentation of this file.
1 /* usiResponse.h
2 */
3 #ifndef OSL_USIRESPONSE_H
4 #define OSL_USIRESPONSE_H
5 #include "osl/game_playing/usiState.h"
6 #include "osl/state/numEffectState.h"
7 #include "osl/container/moveVector.h"
8 #include "osl/container/moveLogProbVector.h"
9 #include <string>
10 namespace osl
11 {
12 namespace game_playing
13 {
14 struct UsiState;
15 class UsiResponse
16 {
17 const UsiState& usi_state;
18 const bool new_move_probability, verbose;
19 public:
20 UsiResponse(const UsiState&, bool new_move_probability, bool verbose);
21 ~UsiResponse();
22
23 bool hasImmediateResponse(const std::string& command,
24 std::string& out);
25 void genmoveProbability(int limit, MoveLogProbVector& out);
26 private:
27 MoveVector generateGoodMoves();
28 void genmoveProbability(int limit, std::string& out);
29 void genmove(std::string& out);
30 void csashow(const NumEffectState& state, std::string& out);
31 void csamove(const NumEffectState& state, const std::string& str,
32 std::string& out);
33 void ki2moves(const NumEffectState& current,
34 const std::string& moves_str, std::string& out);
35 void ki2currentinfo(const NumEffectState& current, std::string& out);
36 void isValidPosition(const std::string& line, std::string& out);
37 };
38 }
39 using game_playing::UsiResponse;
40 }
41
42 #endif /* OSL_USIRESPONSE_H */
43 // ;;; Local Variables:
44 // ;;; mode:c++
45 // ;;; c-basic-offset:2
46 // ;;; End: