-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
35 lines (29 loc) · 1.06 KB
/
main.cpp
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
// main.cpp
// Jeffrey Drost
#include "utttbot.h"
#include <vector>
void test()
{
UTTTBot bot;
std::vector<std::string> input = {
"settings player_names player0,player1",
"settings your_bot player1",
"settings timebank 5000",
"settings time_per_move 200",
"settings your_botid 1",
"update game round 1",
"update game field .,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.",
"update game macroboard -1,-1,-1,-1,-1,-1,-1,-1,-1",
//"update game field .,.,.,.,.,1,.,.,.,0,.,0,.,.,1,0,.,0,.,.,1,.,.,1,.,.,.,1,.,.,.,0,.,.,0,.,1,.,.,.,.,.,.,.,.,1,0,.,.,1,1,1,1,1,.,0,.,1,0,1,0,.,.,0,.,.,.,.,0,.,0,.,1,0,.,0,1,.,1,0,0",
//"update game macroboard .,1,.,1,.,1,-1,.,0",
"action move 10000"
};
for(int i = 0; i < input.size(); i++)
bot.input(input[i]);
}
int main() {
//test();
UTTTBot bot;
bot.run();
return 0;
}