-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add extra file for future. Not used anywhere in current setup
- Loading branch information
Showing
5 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from team import Team | ||
|
||
class Match: | ||
def __init__(self, match_id, team1: Team, team2: Team, match_date, venue): | ||
self.match_id = match_id | ||
self.team1 = team1 | ||
self.team2 = team2 | ||
self.match_date = match_date | ||
self.venue = venue | ||
self.questions = {} # qid: question |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Player: | ||
def __init__(self, player_id, name, role): | ||
self.player_id = player_id | ||
self.name = name | ||
self.role = role |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class Team: | ||
def __init__(self, team_id, name): | ||
self.team_id = team_id | ||
self.name = name | ||
self.players = [] | ||
|
||
def add_player(self, player): | ||
self.players.append(player) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
class Tournament: | ||
def __init__(self, tournament_id, name, start_date, end_date): | ||
self.tournament_id = tournament_id | ||
self.name = name | ||
self.start_date = start_date | ||
self.end_date = end_date | ||
self.matches = [] | ||
|
||
def add_match(self, match): | ||
self.matches.append(match) |