improve implementation of read_pgn() and parse_pgn()

fix implementation of parse_pgn()

fix memory leaks in server_run() when starting the game is aborted

add parse_pgn function which can later be used for automated testing

fix checkmate detection

fix missing cleanup calls in game_play_singlemachine()

(0) -100 -30 -10 -6 +6 +10 tip

mercurial