@Override
public int getAlphaBetaValue(GameState state) {
if (getPlayerToMove(state).equalsIgnoreCase("X")) {
AlphaBeta initial = new AlphaBeta(Integer.MIN_VALUE,
Integer.MAX_VALUE);
int max = maxValue(state, initial);
return max;
} else {
// invert?
AlphaBeta initial = new AlphaBeta(Integer.MIN_VALUE,
Integer.MAX_VALUE);
return minValue(state, initial);
}
}