aboutsummaryrefslogtreecommitdiff
path: root/src/expectimax.cpp
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-03-20 10:29:56 +0100
committerCharles <sircharlesaze@gmail.com>2020-03-20 10:29:56 +0100
commit64f6f1eaa2ecc188292cfe4a7223606b8bcb3bf2 (patch)
tree01717af5c690c66fa3b3a467d98a691de37763f0 /src/expectimax.cpp
parent19ae4e74aedbbfde9aaed9241f616decc3ec9059 (diff)
download2048-64f6f1eaa2ecc188292cfe4a7223606b8bcb3bf2.tar.gz
2048-64f6f1eaa2ecc188292cfe4a7223606b8bcb3bf2.tar.bz2
2048-64f6f1eaa2ecc188292cfe4a7223606b8bcb3bf2.zip
refactoring to more cplusplusy version of classes
Diffstat (limited to 'src/expectimax.cpp')
-rw-r--r--src/expectimax.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/expectimax.cpp b/src/expectimax.cpp
new file mode 100644
index 0000000..3d8bf54
--- /dev/null
+++ b/src/expectimax.cpp
@@ -0,0 +1,12 @@
+#include "expectimax.hpp"
+
+Expectimax::Expectimax(Game *g)
+{
+ game = g;
+}
+
+Direction Expectimax::move()
+{
+ // algo(game->clone());
+ return DIRECTION_UP;
+}