Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 16862

Coding a Triple Elimination Tournament Bracket from scratch in Python. Seeking workflow and basic implementation advice

$
0
0

As the title states, I have triple elimination tournament brackets that I am trying to move to Python to run events in live time. Below is an image of what the 16 person bracket would look like.

Triple Elimination Bracket

Edit:

I have done some work on my Double elimination bracket and will post the code down below. I am currently running into an issue where before I extend it to the Triple Elimination, I would like to fix the seeding issue. As you can see, when the code below runs, it goes through Winner's Bracket first, then generates losers bracket. I currently am doing it randomly, but would like some advice on how to make it a more structured approach, like the bracket demonstrates above.

To reiterate, let's say someone loses in Round 3 of Winners. How would I ensure that they are moved appropriately further in the loser's bracket, instead of matching all players with the 'losers' tag into a whole new bracket from scratch. I am pretty new to tasks like this, and am struggling to really progress from here.

Edit 2: The code that I uploaded seems to be formatted incorrectly. Fixing this quickly

Below is a link to my current code. I was having problems getting the code to copy over with the correct indents here, so figured this would ensure people would have a running version if they wanted to test and help.

Github Repository Link


Viewing all articles
Browse latest Browse all 16862


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>