0
0
Fork 0

Remove all players from the teams

This commit is contained in:
Oliver-Akins 2021-03-15 19:07:54 -06:00
parent 187596ae3a
commit 66891667b9

View file

@ -16,6 +16,11 @@ export default (io: Server, socket: Socket, data: RandomizeTeams) => {
};
let game = games[data.game_code];
// Remove all players from all teams
for (var team of game.teams) {
team.removePlayers();
};
let players = [...game.players];
// game.log.info(players);
let new_team: 1|2 = 1;