fix: index out of range error in PeSTO heuristic

This commit is contained in:
sigmasternchen 2024-10-31 21:21:47 +01:00
parent 1722e98ee3
commit 1039ea037f

View file

@ -222,7 +222,7 @@ class PeSTO implements Heuristic {
$index = $rank * 8 + $file;
if ($piece->getSide() == Side::BLACK) {
$index = 64 - $index;
$index = 63 - $index;
}
return [