summaryrefslogtreecommitdiffstats
path: root/ai.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'ai.hpp')
-rw-r--r--ai.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/ai.hpp b/ai.hpp
new file mode 100644
index 0000000..19420e5
--- /dev/null
+++ b/ai.hpp
@@ -0,0 +1,19 @@
+#ifndef LPG_AI_H
+#define LPG_AI_H
+
+class GameField;
+
+class AI {
+ int max_depth;
+public:
+ AI(int d);
+
+ void GetFirstMove(int &my, int &mx, int rows, int cols);
+ void GetBestMove(int &my, int &mx, GameField field);
+private:
+ int score(GameField field);
+ int min(GameField field, int depth);
+ int max(GameField field, int depth);
+};
+
+#endif /* LPG_AI_H */