diff options
Diffstat (limited to 'ai.hpp')
-rw-r--r-- | ai.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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 */ |