mcostalba / chess_db

GNU General Public License v3.0
22 stars 5 forks source link

Tags do not nest #4

Closed gbtami closed 8 years ago

gbtami commented 8 years ago

With this patch games count of millionbase.pgn (see issue #2) is correct.

The game misguiding the parser was:

[Event "1st/2nd Prize Corus"] [Site "?"] [Date "2008.??.??"] [Round "?"] [White "Bazlov, Y. (wh)"] [Black "[+4146.21c6f6 (bl)"] [Result "1-0"] [SetUp "1"] [FEN "2n1n3/3Qp1RP/2Kb1k1P/8/3q4/6B1/8/8 w - - 0 1"]

  1. Bh4+ Qxh4 2. Rf7+ Kxf7 3. Qf5+ Qf6 4. Qxf6+ exf6 5. h8=Q Bf8 6. h7 Ne7+
  2. Kd7 Ng7 8. Qg8+ Nxg8 9. h8=N# 1-0
mcostalba commented 8 years ago

Great! Merged with ef48e60e510bb7a70b0d