The simplest possible function might just count the number of pieces each side has. If the computer is playing white and a certain board position has 11 white pieces and nine black pieces, the simplest evaluation function might be: 11 - 9 = 2 Obviously, for chess that formula is way too simple, because some pieces are more valuable than others. So the formula might apply a weight to each type Benton 56k , Benton, KS 56k BentonBenton , 56k Kansas, Benton 56k
56k Benton |
|
 |
|