//***************************************************************************** // Include directives: #include #include "strategy.h" using namespace std; //***************************************************************************** // Implementations of functions needed by the game engine: void change_state(int who, move m, state& s) { s.board[m.row][m.column] = who; if(s.board[m.row - 1][column] == (-1 * who)) { } } void compute_legal_moves (int who, state s, move moves[], int& many_moves) { move try; many_moves = 0; for (try.row = 1; try.row <= BOARD_SIZE; ++try.row) { for (try.column = 1; try.column <= BOARD_SIZE; ++try.column) { if (is_legal(who, try, s)) { moves[many_moves] = try; ++many_moves; } } } if (many_moves == 0) { moves[0].row = 0; moves[0].column = 0; many_moves = 1; } } void initialize_state(state& s) { } bool is_game_over(const state& s) { return(0); } // Simple function evaluate how good a board looks to the player who. int evaluate(int who, const state& s) { return(0); } bool is_legal(int who, move m, const state& s) { return(0); } int winner(const state& s) { return(0); }