+ 1

Single elimination tournament problem in python

I am trying to build a single elimination tournament software in python. How can I create an logic for gui that if there is 10 players, then 10 boxes and a match to be created between those 10 players?

27th Jun 2022, 12:47 PM
<k>Kartik</k>
7 odpowiedzi
+ 2
A quick Google search led me to this github repo: https://github.com/smwa/single_elimination You could study and perhaps gain some idea on how the author approached a similar problem and come up with your own version. A simplified method is probably all you need. And then you would still need to code your gui. What module would you use? I'm not a genius programmer by any stretch. But I always keep the mindset that any task we encounter is probably not a new one. No need to start from zero.
27th Jun 2022, 3:20 PM
Bob_Li
Bob_Li - avatar
+ 1
Care to elaborate? will it be a simple display gui, or a tournament simulation? if it is just gui, maybe something like this? https://challonge.com/
27th Jun 2022, 1:29 PM
Bob_Li
Bob_Li - avatar
+ 1
Bob_Li It would a tournament simulation. I'll elaborate on what I am thinking. There are ten weight and age categories (assumption). I would take participant's age and weight and from there it would be automatically classified and a single elimination type matchmaking will happen. For example, there are ten people in under 12 age and under 30 kilograms, so they would be automatically matched and gui for 10 people matching will be created. Second example, there are six people in under 14 age and under 45 kilograms, so they would be automatically matched and gui for 6 people matching will be created.
27th Jun 2022, 1:34 PM
<k>Kartik</k>
+ 1
<k>Kartik</k> interesting problem. Could you give a more concrete listing of the weight and age classes? Maybe there is no need to go into object oriented programming. It feels more like a task where you assign a player a category if they satisfy certain conditions (weight, age), then do a playoff for each category. You might not even need a gui, just a json file.
27th Jun 2022, 5:22 PM
Bob_Li
Bob_Li - avatar
0
I was watching a youtube video today: https://m.youtube.com/c/arjancodes The topic was novel use of Python dictionary. It inspired me to apply it to your classification problem. A classifier script using a dictionary instead of switch-case. Data is a dictionary of contestants (name:weight) I Googled weight-categories for boxing as a test for categories by weight. The result is a dictionary of weight-class:list of names. https://code.sololearn.com/cgc1ko2G1KP5/?ref=app
28th Jun 2022, 5:15 PM
Bob_Li
Bob_Li - avatar
0
KARTIK IF YOU ARE INTRESTED LETS BUILD IT TOGETHER akashs@duck.com
25th Oct 2024, 9:32 AM
akash kumar Singh
akash kumar Singh - avatar