0% found this document useful (0 votes)
23 views2 pages

Champions League Legends Coding Challenge

rrhrhrhrhrhr

Uploaded by

sohamvasishth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views2 pages

Champions League Legends Coding Challenge

rrhrhrhrhrhr

Uploaded by

sohamvasishth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

The 5-a-Side Champions League Legends Match Simulator

This project is designed to provide you with hands-on experience in Python programming, data
manipulation, and simulation techniques, all applied to a legends 5-a-Side Champions League
competition. Your aim is to create a program that can simulate the competition from the knockout
round. (Nobody cares about the group stages)

Champions League Format

Teams: The simulation starts with 16 teams. A CSV file is provided containing the teams.

Players: You are provided with a CSV file containing player names and individual ratings. Each team
has 5 players.

Team Ratings: The rating of a team is calculated as the average of the ratings of its players.

Knockout Rounds: The competition consists of the following stages:

 Round of 16: This is the first stage of the knockout rounds. Teams are paired in a one-on-one
matchup.

 Quarterfinals: Winners from the Round of 16 progress to the quarterfinals.

 Semifinals: Winners move on to the semifinals.

 Final: The two remaining teams face off in the final to determine the champion.

Matches

 Match Outcome: Each match will result in a win or a loss. Draws are resolved by extra time
and, if necessary, penalties.
 Match Summary: This is generated in real time based on the simulated match. A CSV file is
provided with a range of suitable sentences with placeholders.

Simulation Details

 Random Factors: Elements such as player performance, injuries, and red cards are simulated
using randomised functions to influence match outcomes.
 Scoring System: Team ratings influence the probability of scoring goals. Higher-rated teams
have a better chance but are not guaranteed to win, reflecting the unpredictable nature of
football.

Files Provided

1. Clubs CSV: Contains the names of the 16 teams.

2. Players CSV: Contains the names and ratings of the players for each team.

3. Commentary CSV: Contains commentary lines with placeholders for player names.
Project Goals

1. Create the Simulation Framework:

o Read the provided CSV files to load team and player data.

o Calculate team ratings as the average of the player ratings.

o Implement the knockout stages: Round of 16, Quarterfinals, Semifinals, and Final.

o Simulate each match using team and player ratings.

2. Match Simulation:

o Use randomised functions to simulate player performance, injuries, and red cards
etc.

o Calculate the match outcome based on team and player ratings.

o Generate a real-time match summary using the commentary CSV file.

3. Enhancements (Optional):

o Add user inputs to select or manage a team.

o Implement a graphical interface to display match results and summaries.

o Provide detailed statistics for each match and the overall tournament.

You might also like