tzhf / chatguessr

A Twitch chatbot for GeoGuessr.
https://chatguessr.com
MIT License
39 stars 12 forks source link

Mark games as finished, fix #8 #13

Closed ReAnnannanna closed 2 years ago

ReAnnannanna commented 2 years ago

Now ongoing games have state = 'started', while completed games have state = 'finished'. This simplifies the queries that need to know game winners, because they don't have to guess which games are finished based on the number of rounds, which was wrong anyways.

Now when a game is finished, the GameHandler needs to call finishGame.