onthespot Posted July 27, 2009 Share Posted July 27, 2009 I am trying to create a single elimination tournament bracket. I already have leagues done, and am looking now for tournaments. I would be able to have a form that I can enter the tournament name and how many players into. After submitting the next page would have a list of the users on my site, and the teams they can use. Both these values come from tables in my database. Then I will create the tournament. The idea is that the tournament would then create the fixtures for each player. There would of course be one fixture per person. In a tournament of 16, there would be 8 fixtures. The idea is that the tournament would then create the next 4 fixtures upon completion of that round, but in an order whereas you can view it in a bracket and the fixtures continue all the way through until a winner is confirmed. How would I go about doing this? Do you have any guidance you could offer me? Thanks Link to comment https://forums.phpfreaks.com/topic/167683-single-elimination/ Share on other sites More sharing options...
onthespot Posted July 27, 2009 Author Share Posted July 27, 2009 anyone? Link to comment https://forums.phpfreaks.com/topic/167683-single-elimination/#findComment-884346 Share on other sites More sharing options...
methomps Posted July 27, 2009 Share Posted July 27, 2009 Is there a specific seeding you want? One idea would be to have a table in your database with these columns: team_id seed wins Seed the teams 1 through 16. 1-16 --------- 8-9 ============= 4-13 --------- 5-12 ============= 3-14 --------- 6-11 ============= 7-10 --------- 2-15 Since it is single elimination and you track how many wins a team has, you can figure out where each team is. If the 1-seed has 1 win, it is in the second round and facing either 8 or 9 (whoever has a win). If it has 2 wins, it is in the semi-finals and facing the 4-5-12-13 team with 2 wins. And so on. Link to comment https://forums.phpfreaks.com/topic/167683-single-elimination/#findComment-884369 Share on other sites More sharing options...
onthespot Posted July 28, 2009 Author Share Posted July 28, 2009 Thats a cracking idea, although I dont necessarily need seeds, but i could just use them i suppose, and not display them on the page. That way I could have the tournament bracket like that. Awesome. Link to comment https://forums.phpfreaks.com/topic/167683-single-elimination/#findComment-884889 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.