Insert games into the database on creation, instead of completion. This
lets us read back the game ID and use that for the server protocol. This
lets bots and other clients easily correlate their games with the
exposed server database.
In this implementation, games that have not yet finished (or never finished, due to server crash) are stored with a NULL notation and result.
Insert games into the database on creation, instead of completion. This lets us read back the game ID and use that for the server protocol. This lets bots and other clients easily correlate their games with the exposed server database.
In this implementation, games that have not yet finished (or never finished, due to server crash) are stored with a
NULL
notation and result.fixes #18