Projet4/models/tournament.py
2025-01-31 09:43:02 +01:00

29 lines
759 B
Python

from models.participant import Participants
from models.turn import Turn
class Tournament:
"""A competition with players and turns
takes player_list
"""
def __init__(self,
name,
participants,
location = "Club",
date_start = "today",
date_end = 'today',
current_turn = 1,
total_turn = 4 ):
self.name = name
self.participants = participants
self.location = location
self.date_start = date_start
self.date_end = date_end
self.total_turn = total_turn
self.current_turn = current_turn
self.description = "Pas encore de description"
self.turn_list = []