daylen / stockfish-mac

Beautiful, powerful chess app for the Mac
http://stockfishchess.org/mac/
GNU General Public License v3.0
506 stars 116 forks source link

Unable to read moves beyond pawn promotion #41

Closed shreyasminocha closed 6 years ago

shreyasminocha commented 6 years ago

I'm running version 2.1 on macOS Sierra version 10.12.6. I tried to load a game with pawn promotion. The game loads and everything goes well until the pawn promotion and the game after that doesn't load. I created a separate .pgn to verify this:

[Event "?"]
[Site "?"]
[Date "????.??.??"]
[Round "?"]
[White "?"]
[Black "?"]
[Result "1-0"]
[WhiteElo ""]
[BlackElo ""]
[ECO ""]
[FEN "3k4/8/6P1/4K3/8/8/8/8 w - - 0 1"]
[SetUp "1"]
[CurrentPosition "6Q1/4k3/8/4K3/8/8/8/8 b - - 2 2"]

1.g7 Ke7 2.g8=Q  1-0

screenshot 2018-01-05 at 23 32 36

adriang133 commented 6 years ago

The move regex used doesn't have support for promotions. See #44

daylen commented 6 years ago

Closing because #44 is merged