Both players can thus use the same position evaluation function, which simplifies our program. This is a fairly standard (although highly simplified) way to define an evaluation function: white will choose moves with high scores and black will prefer moves with low scores. If the black king is in check add one point to the position score.
0 Comments
Leave a Reply. |