diff options
author | Joursoir <chat@joursoir.net> | 2021-02-20 13:11:12 +0000 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-02-20 13:11:12 +0000 |
commit | 9a668c78bed7197e0b349d4bd2908a67bedd295f (patch) | |
tree | 3b94f44b7714c3c57d265be3b44ae79dad5046fe /ai.hpp | |
parent | 34e22b1d5ea04a9bb2d8b8219f5881c90aa8cc70 (diff) | |
download | lp-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.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |