Conversion of minimax with alpha beta pruning to negamax
I've written a minimax algorithm with alpha beta pruning for the game Checkers, and now I'm trying to rewrite it using the negamax approach. I'm expecting the two to be equivalent, since negamax is just a technique to write the minimax. But for some reason my two algorithms behave differently. When I run them both on the same input, the negamax version seems to evaluate more states, so I think something must be wrong with the alpha beta pruning. The code below shows both algorithms ( minimax and negamax functions), and at the bottom the play function from which I call them. The evaluate