chesslablab / php-chess

A chess library for PHP.
https://chesslablab.github.io/php-chess/
MIT License
102 stars 46 forks source link

Implement the backward pawn evaluation #53

Closed programarivm closed 2 years ago

programarivm commented 3 years ago

A backward pawn is a disadvantage that a chess player or a human-like AI may want to exploit.

Every backward pawn should be counted as described in the example below.

figure-01 Figure 1. w = 2, b = 1


Thus, a new file named BackwardPawnEvaluation.php should be implemented in a similar way as the following evaluation features:

With the new feature implemented, we'll be able to take more accurate normalized heuristic pictures; for further information please visit:

Happy learning and coding!

bofalke commented 3 years ago

Hi there, happy learning and coding!

programarivm commented 3 years ago

@bofalke, welcome to ChesslabLab.

Thank you for joining the community.

Since this one is labelled with hacktoberfest it'll be assigned to you on October 1st if this is okay.

I can't wait to see what you come up with!

Keep it up.