-
Notifications
You must be signed in to change notification settings - Fork 5
/
FuegoAssistant.h
45 lines (35 loc) · 939 Bytes
/
FuegoAssistant.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef FuegoAssistant_H
#define FuegoAssistant_H
////////////////////////////////////////////////////////////////////
#include <string>
#include <sstream>
#include <vector>
#include <iostream> // for standard I/O
#include <boost/iostreams/device/file_descriptor.hpp>
#include <boost/iostreams/stream.hpp>
#include <boost/process.hpp>
#include "Helper.h"
#include "GameConstant.h"
/*
wrapper to communicate with fuego
*/
class FuegoAssistant
{
public:
FuegoAssistant();
~FuegoAssistant();
bool getBookPositions();
bool estimateTerritory(int color);
void clear_board();
void genMove(std::string color);
bool addMove(std::string move, int color);
void showBoard();
bool sendCommandWithEmptyResponse(std::string command, std::string& readLine);
static std::vector<int> bookMoves;
static std::vector<float> estimateScore;
private:
static boost::process::child c;
bool setTerritoryParam;
bool bookLoaded;
};
#endif