chaitu236 / TakServer

Server to handle online TAK games
https://www.playtak.com
GNU General Public License v2.0
35 stars 8 forks source link

get server game IDs from sqlite #27

Closed nelhage closed 7 years ago

nelhage commented 7 years ago

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

chaitu236 commented 7 years ago

Thanks for the code. Modified to have empty notation and 0-0 result instead of NULL.