+ 8

[challenge] planning a competition with 6 teams

with 6 teams (1-6) there are 5 rounds: 1-6 2-5 3-4 6-2 3-1 4-5 3-6 4-2 5-1 6-4 5-3 1-2 5-6 1-4 2-3 Find a good data structure for the plan, give a name to any of the teams and print the plan eg: first round: css - java python-ruby kotlin-web runaways might create random results for each round and print the table.

24th Feb 2018, 9:35 AM
Oma Falk
Oma Falk - avatar
2 Answers
+ 4
Moin Sebstian, t=[[(1,6),(2,5),(3 4)],[(6,2),(3,1),(3,5)]..........] teams= {1="blue",2="red"........} for round in t: for match in round: a,b = match print(teams[1]...., will do it.
25th Feb 2018, 5:39 AM
Oma Falk
Oma Falk - avatar
+ 1
Hi Oma. Maybe the task is to hard. Here is my lazy solution. https://code.sololearn.com/cNczZQuELCY5/?ref=app
24th Feb 2018, 10:54 PM
Sebastian Keßler
Sebastian Keßler - avatar