chesslablab / php-chess

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

Fix the advanced pawn evaluation #532

Open programarivm opened 5 months ago

programarivm commented 5 months ago

figure_01

The advanced pawn evaluation in src/Eval/AdvancedPawnEval.php needs to be fixed.

Buggy explanation:

Buggy elaboration:

A pawn cannot be an advanced pawn and a far advanced pawn at the same time, otherwise as a result the explanation will get too redundant. Thus, a far advanced pawn is also an advanced pawn, however an advanced pawn is not a far advanced pawn.

Fixed explanation:

Fixed elaboration: