1 #ifndef __IA_CONTROLLER_H__
2 #define __IA_CONTROLLER_H__
12 Controller(Game
*game
, bool isAuto
= false);
15 void click(int x
, int y
);
17 void set_minimax_depth(int minimaxDepth
);
18 void set_first_move(int firstMove
);
19 void set_computer_color(int computerColor
);
20 void set_window(Window
*window
);
27 /* called after render scene
28 * checks if its the computer turn to play
32 bool is_empty(int x
, int y
);
33 int piece(int x
, int y
);
34 bool is_highlighted(int x
, int y
);
35 int highlight(int x
, int y
);
38 void clear_highlight();
39 bool can_highlight(int x
, int y
);
43 bool _is_highlighted
[8][8], _is_empty
[8][8], _has_highlight
, _is_playing
;
44 char _highlight
[8][8], _piece
[8][8];
45 int _last_click_x
, _last_click_y
;