riddlesio / issues

Bug reports and starter bot submissions for the Riddles.io platform
0 stars 0 forks source link

API command for "end of match" (feature request) #88

Closed tombsar closed 6 years ago

tombsar commented 6 years ago

I would like to print stuff at the end of a match (debug statistics, e.g. memory usage, total time taken, etc), but currently (unless I'm missing something) there is no way to do this; the game simply ends without sending anything further to the clients.

Would you consider adding an API message to facilitate this? e.g. update game over to indicate that the game has ended. More information, such as the final scores, would also be nice (could be achieved without further API changes by simply sending one last set of update messages, but not requesting an action afterwards).

JimVanEeden commented 6 years ago

This might be a nice idea, but I'd rather not updated existing engines with new API calls because this might cause bots to crash or print errors. So you can print it every round if you want to for now, and I'm going think about a feature like this in future engines.

tombsar commented 6 years ago

I'd rather not updated existing engines with new API calls

Oh, of course not! I meant as something to consider for future games. Thanks for the response.

JimVanEeden commented 6 years ago

Cool, I'm going to close this issue for now then.