Fixed problem with some pawn moves
This commit is contained in:
@@ -2027,6 +2027,15 @@ Rc8 Ne6+ 72. Kf6 d2 73. c5+ Kd7 0-1';
|
||||
$this->assertEquals((36*2)+1, count($game['moves']));
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
public function shouldParseProblemCurio(){
|
||||
$pgnParser = new PgnParser("pgn/CURIO.pgn");
|
||||
|
||||
$games = $pgnParser->getGames();
|
||||
}
|
||||
|
||||
/**
|
||||
* @test
|
||||
*/
|
||||
|
15
test/pgn/CURIO.PGN
Executable file
15
test/pgn/CURIO.PGN
Executable file
@@ -0,0 +1,15 @@
|
||||
[Event ""]
|
||||
[Site "Stockholm"]
|
||||
[Date "1960"]
|
||||
[Round ""]
|
||||
[White "Rantanen"]
|
||||
[Black "Horberg"]
|
||||
[Result "0-1"]
|
||||
[fen "4kb1r/1q3ppp/2b1r3/3p4/2PQ3P/2BBPP2/pp2K1P1/3RR3 b k - 3 28"]
|
||||
|
||||
1... a1Q 29.Rxa1 bxa1Q 30.Rxa1 dxc4 31.Bxc4 Re7 32.Ra6 f6 33.Qc5 Rc7
|
||||
34.Qa5 Bd6 35.Rb6 Qc8 36.Ba6 Qa8 37.Qf5 Bd7 38.Qd3 Bc5 39.Bb7 Qd8
|
||||
40.Ra6 O-O 41.Ba5 Qb8 42.Qd5+ Kh8 43.Bxc7 Bb5+ 44.Kf2 Qxc7 45.Ra8
|
||||
Rxa8 46.Bxa8 Qe7 47.Qe4 Qxe4 48.Bxe4 g6 49.g4 Kg7 50.f4 Ba4 51.Bd5 Bd1
|
||||
52.g5 Bc2 53.Kf3 Bb4 54.Ke2 f5 55.h5 gxh5 56.Kf3 h4 57.e4 Bxe4+ 58.Bxe4
|
||||
fxe4+ 59.Kxe4 h3 60.Kf3 Be1 61.f5 Kf7 0-1
|
Reference in New Issue
Block a user