edited stuff (#50)

This commit is contained in:
Valentin Heiserer
2024-04-23 23:27:01 +02:00
committed by GitHub
parent b8b89ee696
commit 2e5a42b6d3
8 changed files with 62 additions and 47 deletions

View File

@@ -29,12 +29,6 @@ function joinGame(): void {
}
function sendCard(cardInput: Card): void {
const index = botCards.value!.findIndex(card => card === cardInput);
// If card exists in the array, remove it
if (index !== -1) {
botCards.value!.splice(index, 1);
}
backendConnection.sendMessage(MessageType.PLAYER_CARD, {card: cardInput});
}