blob: 3edaa6094193efd25e01e7948a1c940df84b740d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef LPG_AI_H
#define LPG_AI_H
class GameField;
class AI {
int player;
int max_depth;
bool first_move;
public:
AI(int p, int d);
void GetBestMove(int &my, int &mx, GameField field);
void FirstMove(bool m) { first_move = m; }
private:
int score(GameField field);
int MinMax(GameField field, int alpha, int beta, int depth);
};
#endif /* LPG_AI_H */
|