chesslablab / php-chess

A chess library for PHP offering move validation, common formats, multiple variants, UCI engine support, explanation of chess positions, and image recognition.
https://chesslablab.github.io/php-chess/
MIT License
110 stars 52 forks source link

Fix the explanation of the isolated pawn evaluation #502

Closed programarivm closed 6 months ago

programarivm commented 6 months ago

The explain() method in Chess\Eval\IsolatedPawnEval needs to explain the result obtained in terms of the difference in the $phrase array rather than in absolute terms of what is found. This one is a discrete evaluation.