Jump to content


Photo

Tourney


  • Please log in to reply
2 replies to this topic

Poll: no ? (6 member(s) have cast votes)

no ?

  1. no (3 votes [50.00%])

    Percentage of vote: 50.00%

  2. no (3 votes [50.00%])

    Percentage of vote: 50.00%

Vote Guests cannot vote

#1 Jay2391

Jay2391
  • Members
  • PipPipPip
  • Advanced Member
  • 167 posts
  • LocationMichigan

Posted 19 September 2006 - 03:06 AM

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

#2 448191

448191
  • Staff Alumni
  • Advanced Member
  • 3,545 posts
  • LocationNetherlands

Posted 20 September 2006 - 05:05 AM

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.

#3 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,021 posts

Posted 22 September 2006 - 01:03 PM

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"
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users