diff --git a/src/utils/Game.ts b/src/utils/Game.ts index aa3ad3f..1355916 100644 --- a/src/utils/Game.ts +++ b/src/utils/Game.ts @@ -27,7 +27,14 @@ export class Game { this.#players[player] = { position: undefined, role: undefined, - host: is_host + host: is_host, + }; + }; + + public remove_player(player: string, ban: boolean): void { + delete this._players[player]; + if (ban) { + this.banned_players.push(player); }; };