Added a few more logs

This commit is contained in:
Alec Maier
2020-04-10 18:53:51 -04:00
parent e713a3fad5
commit 49ab315566

View File

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