Merge remote-tracking branch 'origin/develop' into feature/multiplayer-game-interface

This commit is contained in:
AfonsoCMSousa
2026-01-02 13:34:53 +00:00
5 changed files with 219 additions and 23 deletions
+6 -2
View File
@@ -18,8 +18,12 @@ const getGame = (id) => {
};
const removeGame = (id) => {
activeGames.delete(id);
console.log(`[Game State] Game removed: ${id}`);
const game = activeGames.get(id);
if (game) {
game.stopTimer();
activeGames.delete(id);
console.log(`[Game State] Game removed: ${id}`);
}
};
module.exports = {