Refactor player update logic into reusable function and integrate across lobby actions.

This commit is contained in:
IM23a-spirgif
2025-06-02 19:52:11 +02:00
parent 9464852079
commit 15b1ccfbc2
2 changed files with 25 additions and 18 deletions
-5
View File
@@ -164,11 +164,6 @@ app.delete("/logout", authenticateToken, async (request, response) => {
response.json({message: "Logged out successfully."});
});
/*
Here will be the Game logic -----------------------------------------------------------------------------------------------
*/
const playerMap = {};
async function createLobby() {