src/strategies/minimax2.c
// Returns a mark indicating wether the board is in our favor.
Returns a mark indicating wether the board is in our favor.
Returns a mark indicating wether the board is in our favor .
int board_value(struct strat_board *b) {
        return shortest_path(b, (b->current_player + 1) % 2) - shortest_path(b, b->current_player);
}
int board_value ( struct strat_board * b ) { return shortest_path ( b , ( b -> current_player + 1 ) % 2 ) - shortest_path ( b , b -> current_player ) ; }
Returns a mark indicating wether the board is in our favor.
Returns a mark indicating wether the board is in our favor .