From e8a44d16d5a313234f51c5f776a9fd0f17ab9e11 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sat, 23 Jan 2021 12:35:42 -0700 Subject: [PATCH] Add resetHand method for teams --- server/src/objects/Team.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/src/objects/Team.ts b/server/src/objects/Team.ts index bf7cb21..668c820 100644 --- a/server/src/objects/Team.ts +++ b/server/src/objects/Team.ts @@ -36,6 +36,14 @@ export class Team { }; + public resetHand(): void { + /** + * Removes all the cards from the guesser's hand + */ + this._hand = []; + } + + public removeCard(question: string) { /** * Removes the given question from the medium's hand