Attempts to ensure any malformed PGN comment, or missing comment, produces an {unknown} comment in the processed version, without eating away at the move list. Three example pgns are included in a new UnitTests folder for this.
The first two PGNs contain intentionally damaged results -- either by missing fields, having wrong formats for the fields, or just outright having no comment at all. The third PGN is from self-play with Weiss, as an example of a proper output
Technically, authors really should have their makefiles attached the .exe extension on Windows. But they seldom do. Its easier to add this hack fix, than it is to enforce that standard, and help people debug.
Worth noting that this is only an issue for Windows, in shells that don't let you execute files, IE powershell/cmd.
Extremely slow connections can cause a chain of reports without ever meaningfully exhausting the results queue, causing single pairs of results to be reported at a time, until almsot the end of time.
The output binary is saved alongside the makefile initially, and moved after the fact. This was done to account for Windows and cross-drive issues due to temp filesystems. Because we are saving alongside the makefile, we can just use a relative path, ie the basename of the engine binary, to avoid possible issues in some engine build scripts.
Also, check process exitcode instead of just checking for the binary when building
Also, pretty-print the compiler error, even though it is sent to the server
using Make to tell the compiler to produce a binary to the /Engines/ dir fails on Windows when the tmpfs is not on the same disk as the Client. This might have also occured on Windows. shutil resolves that.
Take extra care to always maintain the possible .exe extension on files when doing this. This is done twice in the shutil line; first making sure to pickup the true file output name, and secondly to only use the root of the out_path and not the basename
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
client.py will pull from github, as requested by the server
client.py will extract and put all files locally ( except replacing itself ? )
Moved cutechess directly into the Client folder to it gets pulled.
May need to chmod +x the cutechess-ob for Linux on demand.
In the future, the cleanup script will delete everythinge except:
client.py, and any credentials.* files.
Such that one can run an openbench client in any directory, from a single file.