5 ms·
I don’t understand his evaluation function. Why do we need the 200x(K-K’) term? It should always be zero.
by janalsncm 2y ago
I don’t understand his evaluation function. Why do we need the 200x(K-K’) term? It should always be zero.
- jhbadger 2y agoRemember that this for evaluating future states of the board. A state of the board where the opposing king is taken (or technically just checkmated), yielding a win is highly desirable. In this case K' is zero even though this can't happen in a middle of the game. By having such an evaluation function the computer is encouraged to make moves that reach this state.
- mrob 2y agoFrom the article: "We will be chiefly concerned with the middle game and will not consider the end game at all." The effect of having the checkmate rule instead of capturing the king is allowing the possibility of stalemates. But stalemate is rare in the middle game, where there are usually many legal moves available, so it's simpler to pretend the goal is just to capture the king.
- thethirdone 2y agoIt is however important to note that allowing kings to be taken can result in both kings being traded which by the scoring function would be considered neutral. This possibility does not occur in normal games so a search with that modification may generate the wrong value. Games would need to also be stopped when a king is taken to make the search approximately correct.