summaryrefslogtreecommitdiffstats
path: root/ai.hpp
blob: 19420e543702c0f55a137102dd81c9fa2af7c89b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 */