ADD: Split players into two teams internally

This commit is contained in:
2025-03-16 10:32:55 +01:00
parent e13aa33dd6
commit 2022ee504d
4 changed files with 49 additions and 18 deletions

16
models/team.py Normal file
View File

@@ -0,0 +1,16 @@
from models.player import Player
class Team:
def __init__(self):
self.players = []
self.is_ct = False
self.score = 0
def add_player(self, player: Player):
self.players.append(player)
def remove_player(self, player: Player):
self.players.remove(player)
def set_ct(self, is_ct: bool):
self.is_ct = is_ct