๐Ÿ“ฆ Raphire / UTTT-AI

๐Ÿ“„ utttbot.h ยท 39 lines
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// utttbot.h
// Jeffrey Drost

#ifndef UTTTBOT_H
#define UTTTBOT_H

#include <string>
#include <vector>
#include <chrono>
#include <iostream>

#include "utttai.h"
#include "uttt.h"
#include "ttt.h"

class UTTTBot {
	int timebank;
	int time_per_move;
	std::string player_names[2];
    int round;
	std::string your_bot;
	int your_botid;
	bool firstMove = false;
	State state;

	std::vector<std::string> split(const std::string &s, char delim);
	void setting(std::string &key, std::string &value);
	void update(std::string &key, std::string &value);
	void move(int timeout);

public:
	void run();

    void input(std::basic_string<char> &basic_string);
};

#endif // UTTTBOT_H