From f85ce342d96b90376af0f735babe29dc704c7b0f Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 17 Jan 2022 00:58:06 +0100 Subject: lol what even is this diff --- draughts/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/draughts/app.js b/draughts/app.js index 126f0dc..b275534 100644 --- a/draughts/app.js +++ b/draughts/app.js @@ -101,7 +101,7 @@ wss.on("connection", ws => { } }, ws) game.move(msg.body) - + /* If this returns false, it means that one of the players won the game. In this case we * need to update statistics regarding the amount of moves it takes to win a game and * such. We also need to remove the game. @@ -120,7 +120,7 @@ wss.on("connection", ws => { /* Remove ongoing game */ stats.ongoingGames-- env.removeGame(game) - } + } break } }) -- cgit v1.2.3