FS#7209 - Make chessbox able to view games stored in PGN format
Opened by Mauricio Peccorini (mpeccorini) - Thursday, 24 May 2007, 15:43 GMT
Last edited by Nils Wallménius (nls) - Tuesday, 29 May 2007, 16:33 GMT
The patch makes chessbox work both as a plugin and as a viewer. If the plugin is started like usual it will have the same behaviour. However, if a PGN file (a file with pgn extension) is selected in the file browser, the plugin will start as a viewer and will show the list of games contained in the file.
After the users selects a file, the board will be shown and the user will be able to replay the match using the left and right buttons (move forward and move backwards respectively)
At any time during the match, if the user presses the menu key combination, a small menu will be shown and it will allow him to restart the same game, choose a new game or quit the viewer.
-simple annotations (i.e.:?,!,?! and so forth are supported, but numeric annotation glyphs are not yet supported).
-variations of the main line of the game are not supported at all.
-full browsing of the game tags (event, site, white/black elo, etc) is not possible. Only white's name, black's name and date are shown ATM.
-The game list will be loaded in memory in it's entirety. While only the players names, date of match and line number in the file will be included in the list, if the number of games exceeds a couple thousand the player may crash.
-Efforts to support deviations to the format (like expressing castling with zeros instead of capital "O" letters) have been taken. However, after a game is selected, a file called chessbox.log will be left in the rocks folder. If a game is not parsed correctly, please send it to me (mpeccorini at yahoo dot com) and I will gladly fix the problem.
-To aid the developer in the tests, I'm attaching a PGN file with the history of the games the Salvadorean team played in the Chess Counter-Olympiad in Lybia 1976. They won the gold medal !
-Storing games played against the GNUChess engine will be supported in a future patch as well as switching between plugin and viewer modes.
Tuesday, 29 May 2007, 16:33 GMT
Reason for closing: Accepted
Additional comments about closing: comitted