summaryrefslogtreecommitdiffstats
path: root/ai.hpp
blob: ec1f56b0b52a9790b8552a040430f60cd86b2961 (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 player;
	int max_depth;
	bool first_move;
public:
	AI(int p, int d);

	void GetBestMove(int &my, int &mx, GameField field);
private:
	int score(GameField field);
	int MinMax(GameField field, int depth);
};

#endif /* LPG_AI_H */