summaryrefslogtreecommitdiffstats
path: root/ai.hpp
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-02-20 13:11:12 +0000
committerJoursoir <chat@joursoir.net>2021-02-20 13:11:12 +0000
commit9a668c78bed7197e0b349d4bd2908a67bedd295f (patch)
tree3b94f44b7714c3c57d265be3b44ae79dad5046fe /ai.hpp
parent34e22b1d5ea04a9bb2d8b8219f5881c90aa8cc70 (diff)
downloadlp-gomoku-9a668c78bed7197e0b349d4bd2908a67bedd295f.tar.gz
lp-gomoku-9a668c78bed7197e0b349d4bd2908a67bedd295f.tar.bz2
lp-gomoku-9a668c78bed7197e0b349d4bd2908a67bedd295f.zip
improve AI, delete dbgprint(), fix some bugs
Diffstat (limited to 'ai.hpp')
-rw-r--r--ai.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ai.hpp b/ai.hpp
index 19420e5..0b757c9 100644
--- a/ai.hpp
+++ b/ai.hpp
@@ -4,11 +4,12 @@
class GameField;
class AI {
+ int player;
int max_depth;
+ bool first_move;
public:
- AI(int d);
+ AI(int p, 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);