Fix problem with en passant moves in combination with king in chess

The parser did not handle fen's like

8/8/7p/5P1k/5pPp/P6K/4r2R/8 b - g3

properly. It reported pawn h4 to g3 as an invalid move. This has now been fixed
This commit is contained in:
Alf Magne Kalleland
2018-06-30 14:03:55 +02:00
parent 0e28c13fef
commit 8761d777fe
2 changed files with 12 additions and 3 deletions

View File

@@ -205,9 +205,6 @@ class PgnParser
if (isset($move["from"])) {
$move["n"] = $move["from"] . $move["to"];
#$move["n"] = $move["from"] . $move["to"];
#unset($move["m"]);
unset($move["fen"]);
unset($move["from"]);
unset($move["to"]);