I don't understand why negamax should return a negative score ?
The initial call to negamax doesn't make sense to me.
It is said that's the opposite
When called, the arguments α and β should be set to the lowest and highest values possible for any node [b]and color should be set to 1[/b]. (* Initial call *) negamax(origin, depth, -inf, +inf, 1)
Or if i call it with joueur^1 (knowing that AI = joueur 1) it would call it with "0" and not "1".
I don't even talk about the minus sign to negamax.