bet
bet copied to clipboard
Timer should be implemented on the backend
Currently, the timer function is implemented on the frontend with JavaScript. The problem is that if the JavaScript execution stops somehow on the client-side (eg. the user calls alert()
from the console), the timer will also stop, allowing the players to stop the game completely.
The timer therefore should be implemented on the backend.