Jay2391 Posted September 19, 2006 Share Posted September 19, 2006 I am Looking to create a tourney braket on PHP 16 teams when you don you enetr scores winner moves to next round scores get save on DB and you have a sing on cheet can some one give me some sort of desing example on how to acomplish this thanks... Link to comment https://forums.phpfreaks.com/topic/21226-tourney/ Share on other sites More sharing options...
448191 Posted September 20, 2006 Share Posted September 20, 2006 I voted no. ;D <drops off his chair laughing>On topic:Not unlike in php (coding) help, we can't provide you with a ready to use design. You have to be able to create the design yourself, then we can help improving it. Link to comment https://forums.phpfreaks.com/topic/21226-tourney/#findComment-95095 Share on other sites More sharing options...
Barand Posted September 22, 2006 Share Posted September 22, 2006 I adopted an OOP approach when I did this. My classes weretournamentroundmatchplayerFor the output I decided to draw a tile for each match with name1 placed 1/4 of the way down and name2 3/4 of the way down and then I could draw the brackets. Tiles in round 2 were twice the height of those in round 1 and so on, giving[pre] aaaa -+ +- aaaa -+ bbbb -+ | +- cccc -+ cccc -+ | | +- cccc -+ | dddd -+ | +- cccc eeee -+ | +- eeee -+ | ffff -+ | | +- eeee -+ gggg -+ | +- hhhh -+ hhhh -+[/pre]That's my 0.02 worth.PS I voted the other "no" Link to comment https://forums.phpfreaks.com/topic/21226-tourney/#findComment-96678 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.