• Create Account

#ActualGiustino

Posted 24 May 2012 - 02:15 PM

Ok i'll have a look.

For my example, here is a cleaner explanation:
Test column 3
FREE column 3 / SCORE: 1000
BEST column 3 (score 1000)
Test column 2
FREE column 2 / SCORE: 1000
Test column 4
FREE column 4 / SCORE: 1000
Test column 1
FREE column 1 / SCORE: 1000
Test column 5
FREE column 5 / SCORE: 1000
Test column 0
FREE column 0 / SCORE: 3
Test column 6
FREE column 6 / SCORE: 1000


produced by:

Can you see the problem ? It always happened in those cases.

This is weird...

Initial call for negamax:
When i changed the code you've shown above, goes wrong.
But like this, it works (except the problem i've told before):

y = InsererJeton(grille, emplacements, x, joueur^1);
scoreCoup = IA_NegaMaxAlphaBeta(4, -1000000000, 1000000000, grille, emplacements, colonne, emplacement, joueur);


Is it normal that i've to write "!joueur" and not simply "joueur" ?

#2Giustino

Posted 24 May 2012 - 02:14 PM

Ok i'll have a look.

For my example, here is a cleaner explanation:
Test column 3
FREE column 3 / SCORE: 1000
BEST column 3 (score 1000)
Test column 2
FREE column 2 / SCORE: 1000
Test column 4
FREE column 4 / SCORE: 1000
Test column 1
FREE column 1 / SCORE: 1000
Test column 5
FREE column 5 / SCORE: 1000
Test column 0
FREE column 0 / SCORE: 3
Test column 6
FREE column 6 / SCORE: 1000


produced by:

Can you see the problem ? It always happened in those cases.

This is weird...
When i changed the code you've shown above, goes wrong.
But like this, it works (except the problem i've told before):

y = InsererJeton(grille, emplacements, x, joueur^1);
scoreCoup = IA_NegaMaxAlphaBeta(4, -1000000000, 1000000000, grille, emplacements, colonne, emplacement, joueur);


Is it normal that i've to write "!joueur" and not simply "joueur" ?

#1Giustino

Posted 24 May 2012 - 01:31 PM

Ok i'll have a look.

For my example, here is a cleaner explanation:
Test column 3
FREE column 3 / SCORE: 1000
BEST column 3 (score 1000)
Test column 2
FREE column 2 / SCORE: 1000
Test column 4
FREE column 4 / SCORE: 1000
Test column 1
FREE column 1 / SCORE: 1000
Test column 5
FREE column 5 / SCORE: 1000
Test column 0
FREE column 0 / SCORE: 3
Test column 6
FREE column 6 / SCORE: 1000


produced by:

Can you see the problem ? It always happened in those cases.

PARTNERS