• Create Account

### #ActualGiustino

Posted 25 May 2012 - 01:23 PM

The problem is that it picks up MAX score every time (in the list of scores - see the debug). If there wasn't a minus sign with all scores, it would be good.
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.

I'm lost

### #1Giustino

Posted 25 May 2012 - 01:13 PM

The problem is that it picks up MAX score every time (in the list of scores - see the debug). If there wasn't a minus sign with all scores, it would be good.
I don't understand why negamax should return a negative score ?

PARTNERS