Champions League Legends Coding Challenge
Champions League Legends Coding Challenge
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)
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.
Round of 16: This is the first stage of the knockout rounds. Teams are paired in a one-on-one
matchup.
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
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
o Read the provided CSV files to load team and player data.
o Implement the knockout stages: Round of 16, Quarterfinals, Semifinals, and Final.
2. Match Simulation:
o Use randomised functions to simulate player performance, injuries, and red cards
etc.
3. Enhancements (Optional):
o Provide detailed statistics for each match and the overall tournament.