Jump to content

Archived

This topic is now archived and is closed to further replies.

Jay2391

Tourney

no ?  

6 members have voted

  1. 1. no ?

    • no
      3
    • no
      3


Recommended Posts

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...

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
I adopted an OOP approach when I did this. My classes were

tournament
round
match
player

For 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"

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.