/* AI player for ticTacToe */

#include "gameBoard.h"
#include <vector>

struct coord {
	int row,col,score;
};

class ai {
	int myIQ;
	int myPlayerNum;
	bool active;
	coord myChoice;
	gameBoard myImaginaryBoard;

	bool smartMove();
	bool tryBlock();
	bool instaWin();
	void scorePossibles(vector<coord> &);
	void bestPossible(vector<coord> &);

  public:
	ai();
	void activate(int);
	coord makeMove(gameBoard &);
	bool isActive();

};