chesslablab / php-chess

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

Fix the explanation of the protection evaluation #504

Closed programarivm closed 5 months ago

programarivm commented 5 months ago

The explain() method in Chess\Eval\ProtectionEval 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.