onthespot Posted January 27, 2010 Share Posted January 27, 2010 So the idea is that I will create a knockout style tournament bracket. Single elimination, im sure you know what i mean. How would i go about getting the winner of a round to go through to the next round? I suppose it would be someway of saying the winner goes into the next spot, any ideas? How could I make it look like a bracket? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/190004-tournaments/ Share on other sites More sharing options...
ignace Posted January 27, 2010 Share Posted January 27, 2010 http://en.wikipedia.org/wiki/Round-robin_tournament Quote Link to comment https://forums.phpfreaks.com/topic/190004-tournaments/#findComment-1002455 Share on other sites More sharing options...
teamatomic Posted January 27, 2010 Share Posted January 27, 2010 Keep track of the players,bracket and round. Mark the winners and losers as such. For each round go forward to the next round. ie. R2B1W+R2B2W=R3B1,R2B3W+R2B4W=R3B2 To make it look like a bracket I'd say use nested tables. HTH Teamatomic Quote Link to comment https://forums.phpfreaks.com/topic/190004-tournaments/#findComment-1002457 Share on other sites More sharing options...
Psycho Posted January 27, 2010 Share Posted January 27, 2010 http://en.wikipedia.org/wiki/Round-robin_tournament ???. That is a description of a round robin tournament. The OP needs a single elimination tournament. @onthespot, You are asking for A LOT. You are asking for the logic, how to display it, etc., etc. You need to figure out all the pieces of functionality you want, then start coding each. If you have a problem with something specific, then post here on that specific problem. But, I'll give some advise. You don't need to "advance" someone to the next round. Using a database you would just need to assign each player/team a position (i.e. 1 to 16). Then just store the results of each matchup (i.e. winner_id and loser_id). You could then use the data of who played who and who the winners were to determine display the results and determine the current round and the remaining competitors. You don't even need to record the "rounds" played since 1 would play 16 ONLY in round 1, 1 would play 2 or 15 ONLY in round 2, etc. Displaying the results would just require you to determine how you want it displayed and then just walking though the process logically. Quote Link to comment https://forums.phpfreaks.com/topic/190004-tournaments/#findComment-1002462 Share on other sites More sharing options...
teamatomic Posted January 27, 2010 Share Posted January 27, 2010 ignace, There are nany type of competitions. RoundRobin and single elimination are not the same thing. In a round robin everyone plays each other and the one with the most totals wins is the winner, as the rounds progress the #1 placed bracket is flopped and each entrant moves up the chart one slot. In a single elimination the brackets are filled by draw and the loser is out, the winner advances to the next round of play. In double elimination the loser goes to a similar bracket where the winner advances and in the end the winners bracket is for 1,2 place, the loser bracket is for 3,4 place, also termed the consolation round. HTH Teamatomic Quote Link to comment https://forums.phpfreaks.com/topic/190004-tournaments/#findComment-1002465 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.