Hi all,
Currently what I'm doing if I want the AI to make a second move while on the same turn is:
if (board.sameTurn)
val = negamax(board, depth, alpha, beta);
else
val = -negamax(board, depth - 1, -beta, -alpha);
However, if I plan to move to Negascout, PVS, etc it gets more tricky and I'll end up having lots of 'if' conditions in the search. So is there a better way for the AI to handle a second move on the same turn outside of the search?
Thanks