We need to create a random sports league schedule with set dates that also checks for certain conditions, such as:
Team 1 cannot play between certain dates
Team 2 cannot play on Saturdays
Team 3 cannot play between certain dates
Also, we schedule 2 games on 1 day (morning/afternoon). As a preference we want to avoid the same team playing twice on same day (double header). This is only a preference. If no other solution is available we want the algorithm to show us the best schedule with the LEAST number of double headers.
the dates should be saved in csv or txt file and parsed in to code
the team names should be saved in csv or txt file and parsed in to code
the conditions should be saved in csv or txt file and parsed in to code
You should decide what data structure for the above 3 files
We have 6 teams in the league. Each team only plays each other once.
The finished code should display in a table ALL possible options for the league.
The following data is provided:
April 14, Apri 28
UH, Kobe, Osaka, Shiga, Keihan, Tigers
UH cannot play from Jun 30 to May 21
UH cannot play on May 12
Kobe and Tigers cannot play from May 5 to June 4
Keihan and Osaka cannot play on Apr 28
There should only be 1 match played on Aug 4 in morning. Afternoon is left open for any changes during season.
Each year the dates, teams and conditions change so we want to have code that can be run at the beginning of each season.
19 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön
Hi There, I can do it very quickly & effectively. I'm having more than 18 years of web development experience. Looking forward to work with you! Thanks!
Hello, I am independent, experienced python expert. I can help with this task with quick turnaorund. Looking to hearing from you. Kind regards Rina B.
When I get all requirements with necessary files, I will be finishing the project in four days. During project you may contact me whenever you want. I will be ready for update the status in real time.