More robust handling of PGN processing

Fixes a bug where .pgn openings don't have the book moves shown
Fixes a bug where engines that don't report sufficent data ( either eval, or eval depth seldepth time nodes ) would have the moves not copied to the compressed pgn

Standard now has {book} for book moves
Standard now has {unknown} for moves with missing information

Added GameEndTime to VERBOSE PGNs to retroactively compute things
Added scaleFactor to all PGNs to allow adjusting the TimeControl correctly
Removed PlyCount which was not needed, and simply added more bytes
This commit is contained in:
andrew committed 2023-12-20 16:51:03 -05:00
1 parent aae6b42790
commit 0cde283d89
2 files changed
+28 -17

No files matched your search

+1 -1
View File
@@ -1114,7 +1114,7 @@ def complete_workload(config):
if config.workload['test']['upload_pgns'] != 'FALSE':
compact = config.workload['test']['upload_pgns'] == 'COMPACT'
pgn_files = [Cutechess.pgn_name(config, timestamp, x) for x in range(cutechess_cnt)]
ServerReporter.report_pgn(config, compress_list_of_pgns(pgn_files, compact))
ServerReporter.report_pgn(config, compress_list_of_pgns(pgn_files, scale_factor, compact))
def download_opening_book(config):