summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2018-07-21 22:01:57 +0200
committerTom Smeding <tom.smeding@gmail.com>2018-07-21 22:01:57 +0200
commit53291958e0cda68ed762c0dfb36c0602f876c06d (patch)
tree1a1ed725c0c4a993c41bc25ace5484a032764cb9 /main.cpp
parentd7828673e787afc76913ede36fed78ba6a179470 (diff)
Add MCTS AI
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 9dfdfe9..993bfc3 100644
--- a/main.cpp
+++ b/main.cpp
@@ -4,12 +4,13 @@
#include "board.h"
#include "ai_mc.h"
#include "ai_mm.h"
+#include "ai_mcts.h"
#include "ai_rand.h"
using namespace std;
#ifndef AI_CHOICE
-#define AI_CHOICE MC
+#define AI_CHOICE MCTS
#endif
#define STR_(x) #x
@@ -51,7 +52,7 @@ int main() {
onturn = -onturn;
}
- int win;
+ int win = 0;
string line;
while (true) {