keep a string of moves/comments when parsing PGN.

This commit is contained in:
2021-06-05 20:41:53 +02:00
parent 6c8c93f451
commit 638ad1fd2d
2 changed files with 10 additions and 6 deletions

View File

@@ -28,6 +28,7 @@ class PgnGameParser{
public function getParsedData(){
$this->gameData = $this->getMetadata();
$this->gameData[CHESS_JSON::MOVE_MOVES_STRING] = $this->getMoveString();
$this->gameData[CHESS_JSON::MOVE_MOVES] = $this->getMoves();
return $this->gameData;
}
@@ -140,4 +141,4 @@ class PgnGameParser{
$gameData = preg_replace("/(\s+)/", " ", $gameData);
return trim($gameData);
}
}
}