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:
@@ -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"]);
|
||||
|
Reference in New Issue
Block a user