From 49ab315566fb2a163762c78de25515a834b249c5 Mon Sep 17 00:00:00 2001 From: Alec Maier Date: Fri, 10 Apr 2020 18:53:51 -0400 Subject: [PATCH] Added a few more logs --- server.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.js b/server.js index b4c76f5..7b118a5 100644 --- a/server.js +++ b/server.js @@ -169,11 +169,14 @@ io.on('connection', function(socket) { game.lastKilled = player.id; game.killedRole = player.card.role; game.message = player.name + ", a " + player.card.role + ", was killed!"; + console.log(game.message); const winCheck = teamWon(game); if (winCheck === "wolf") { + console.log("wolves won the game!"); game.winningTeam = "wolf"; game.status = "ended"; } if (winCheck === "village") { + console.log("village won the game!"); game.winningTeam = "village"; game.status = "ended"; }