|
||||||
| PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||||
|
Okay i am trying to make this generate for 4 8 and 16 size tournaments.
Here is my example http://clansi.net/test2.php but as you can see that would take alot of space and the runtime slow. I also want to learn to generate it for learning purpose's Also i can see a math equation in it Round 1 starts at box 1 (having 0 being the round name) then goes adding 2 after that for each name Round 2 has 2 Space at the start (The spaces consecutive in round 1) and adds 4 consecutive.. (it doubles) the math equation is used throught the whole pattern Given Start 1 Take the number before double it (2) then use 2 and take that number and double it (4) hard to explain but this is just babling haha just if you can help me generate that tournment by actually inputting any number that would be great |
| Sponsored Links |
|
|
|
|||||
|
The first thing I would do is work out a relationship between the number of teams playing and the number of rounds played.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
|
|||||
|
How about if you did it by "n" - any arbitrary number? Then what would it be (in terms of n).
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
|
|||||
|
Try looking at it like this:
Code:
Teams : Rounds 1 : 0 2 : 1 3-4 : 2 5-8 : 3 9-16 : 4 17-32 : 5
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Programming is a branch of mathematics. Last edited by WingedPanther; 08-27-2008 at 04:44 PM. Reason: formatting |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Generate text with transparent background | AfTriX | PHP Tutorials | 1 | 01-08-2007 03:13 AM |
| Generate random points | tim838 | Java Help | 2 | 10-16-2006 07:59 PM |
| I need to generate a random number in PHP | dirkfirst | PHP Forum | 7 | 07-05-2006 10:58 PM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 97%