POLIMI-FER-codebenders / tournament_app

Tournament app for Code Defenders made by student team of POLIMI and FER students
GNU Lesser General Public License v3.0
0 stars 0 forks source link

It's not possible to create knockout tournaments with a number of teams that is not a power of two #61

Closed SimoneMezzaro closed 1 year ago

SimoneMezzaro commented 1 year ago

The condition that a knockout tournament can only have a number of teams equal to a power of two is too restrictive. We should allow any number of teams to compete

andrearestelli commented 1 year ago

I think this restriction is reasonable. All the knockout tournaments are structured with a number of participants which is a power of two. Otherwise the number of possible combinations explodes. At the end of the day we are leaving the possibility to play league tournaments if the number of teams doesn't fit in a power of two.

SimoneMezzaro commented 1 year ago

I know that this restriction is usually reasonable, but the customer told that one of the intended usages for the app is let professors create tournaments with their students. Which means that only classes that have a power of two numbers of students/teams can use the knockout mode.

ricnava00 commented 1 year ago

If we do this (not saying we shouldn't) we have to find an algorithm to give byes. Otherwise in a tournament with 9 teams the last team will directly go to the finals

SimoneMezzaro commented 1 year ago

Now it' a bit late to implement this. It can be considered a future update. I'm closing it