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. So the formula might apply a Acton 56k , Acton, IN 56k ActonActon , 56k Indiana, Acton 56k
56k Acton |
|
 |
|