OyvindSabo / chess-bot

Chess bot
0 stars 1 forks source link

Make number-of-moves logic symmetrical in evaluation function #27

Closed OyvindSabo closed 5 years ago

OyvindSabo commented 6 years ago

The bot increases its board score if it has many available moves, but its opponent is valued negatively if the bot has many available moves. This isn't necessarily wrong, but I'd prefer a symmetrical evaluation function.

OyvindSabo commented 6 years ago

Right now the number of moves evaluation has been removed, since it was a bit slow. I would like to bring it back in the future though.

OyvindSabo commented 6 years ago

I realize that it might actually be important that this evaluation is symmetrical, otherwise, when the bot just counts its own number of moves, it might avoid doing a sacrifice, even if that's the best move.

OyvindSabo commented 5 years ago

Also, it is worth noting that it is smart to sacrifice number of available moves if it reduces the opponent's available moves even more.