1 #ifndef __MINIMAX_ENEMY_H__
2 #define __MINIMAX_ENEMY_H__
10 //using namespace std;
12 class MinimaxEnemy
: public Enemy
15 MinimaxEnemy(bool player
, int minimaxDepth
): Enemy(player
, minimaxDepth
), _game_boards(board_compare
) {}
16 void move(Board
*board
, int& fromX
, int& fromY
, int& toX
, int& toY
);
17 int alphabeta(Board board
, int depth
, int alpha
, int beta
, int player
);
19 int heuristica(Board board
, bool player
);
20 virtual void undo(Board
*board
) {
21 _game_boards
.erase(board
->to_comp());
23 for(Board::Set::iterator i = _game_boards.begin(); i != _game_boards.end(); ++i) {
24 cout << i->first << ' ' << i->second << endl;
30 Board::Set _game_boards
;