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"; }