way it does this is by using an evaluation function. 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. Guilford 56k , Guilford, IN 56k GuilfordGuilford , 56k Indiana, Guilford 56k
56k Guilford |
|
 |
|