SUpport for arrows in pgn

This commit is contained in:
DHTMLGoodies
2017-03-29 20:49:12 +02:00
parent 40a19a7551
commit 18768ccb5d
7 changed files with 10 additions and 0 deletions

0
JsonToPgnParser.php Normal file → Executable file
View File

0
test/JSONToPgnTest.php Normal file → Executable file
View File

View File

@@ -2059,6 +2059,16 @@ Rc8 Ne6+ 72. Kf6 d2 73. c5+ Kd7 0-1';
// when
$game = $pgnParser->getGameByIndex(0);
$expectedMoves = array("", "Nf3","c5","c4","Nc6","Nc3","e5","e3","Nf6","Be2", "d5");
for($i=1;$i<count($expectedMoves);$i++){
$m = $game["moves"][$i];
$this->assertEquals($expectedMoves[$i], $m["m"]);
}
$m = $game["moves"][7];
// then

0
test/pgn/annotated.pgn Normal file → Executable file
View File

0
test/pgn/greatgames-onelines.pgn Normal file → Executable file
View File

0
test/pgn/greatgames-twolines.pgn Normal file → Executable file
View File

0
test/pgn/nullmoves.pgn Normal file → Executable file
View File