1
vote
Why is my negamax algorithm returning negative infinity scores?
I'm not sure if this is what's wrong, but beware that:
(-Integer.MIN_VALUE) == Integer.MIN_VALUE
Because of that I'd suggest using a different integer to represent ...
- 6,891
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
algorithm × 1137path-finding × 138
mathematics × 127
2d × 89
ai × 88
procedural-generation × 85
c# × 76
unity × 69
c++ × 68
java × 66
game-design × 60
collision-detection × 56
3d × 51
random × 49
geometry × 48
grid × 41
physics × 38
xna × 31
javascript × 31
maps × 31
game-mechanics × 28
tilemap × 28
tiles × 25
terrain × 25
data-structure × 25