D
dawnpatch
Guest
Hey everybody! Right now I'm trying to build a tournament bracket generator similar to "challonge." I can't figure out how to make a system though the bracket. I currently have an input system for players to enter their name so it gets saved to an array which i capped to 256 cause I don't think I'd need more space for a tournament.
I did read about lists though and saw that you don't need to set a cap cause they can be added to on the fly so would you recommend i switch to a list instead of using an array?
Back to the bracket though, I have no clue how to build upon it to support any amount of player and to change according to that. I could figure it out for standard numbers like 8,16,32 but those brackets would have to be presets. If there is a odd number like 13 then the bracket changes according to that but I'm not sure how? Challonge has examples if you look up any bracket that isn't something like 8,16,32 etc.
I'll ignore seeding for right now because I think I could figure that out.
So the main goal is for the bracket to create its self based on how many players are entered lol.
Thanks for the help you guys!
I did read about lists though and saw that you don't need to set a cap cause they can be added to on the fly so would you recommend i switch to a list instead of using an array?
Back to the bracket though, I have no clue how to build upon it to support any amount of player and to change according to that. I could figure it out for standard numbers like 8,16,32 but those brackets would have to be presets. If there is a odd number like 13 then the bracket changes according to that but I'm not sure how? Challonge has examples if you look up any bracket that isn't something like 8,16,32 etc.
I'll ignore seeding for right now because I think I could figure that out.
So the main goal is for the bracket to create its self based on how many players are entered lol.
Thanks for the help you guys!