What could cause this to start miscalculating after awhile?
问题 I'm trying to implement NegaMax for a game of checkers. I'm just testing it with a depth of 0 right now, meaning the current player just evaluates all his moves without regard to what the other player might do next. It works perfectly for about half the game (computes the scores correctly), and then part way through it starts spitting out non-sense answers. For example, White might have 1 piece left, and Black will have 5, but it will evaluate White's moves as a score of 7 for example, when