exiles.prx's Profile User Rating: -----

Reputation: 65 Whiz
Group:
Active Members
Active Posts:
241 (0.14 per day)
Joined:
22-November 10
Profile Views:
3,430
Last Active:
User is offline Oct 24 2014 09:38 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Linux
Favorite Browser:
FireFox
Favorite Processor:
AMD
Favorite Gaming Platform:
PC
Your Car:
Mitsubishi
Dream Kudos:
0
Icon   exiles.prx ..........

Posts I've Made

  1. In Topic: Best way to approach displaying data for tournament bracket?

    Posted 14 Oct 2014

    Well, if your going to store the round value in the players table, everyone starts at round 1 and therefore each players round value should be 1. As each player wins a round, you could increment the round value by 1.

    Also, if you need to display the history of the tournament then you may want to include a table which stores the history of each player (position for each round).
  2. In Topic: Best way to approach displaying data for tournament bracket?

    Posted 13 Oct 2014

    If it was me I would only have one player in a table similar to your second approach. I would also store the current position of the player. For example Player 1 is 1st place and position 1, Player 2 is 16th place and position 2, etc. Positions 1 and 2 will always play each other, positions 3 and 4 will always play each other, etc..

    If you view the players as having positions and ranks like the example above, you can calculate the winners position by ceil(currentPostion / 2), Just be sure to update the player position after each win. I hope that helps.

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
PA
Years Programming:
4
Programming Languages:
Proficient: PHP, JavaScript
Familiar: C#, Java, C++, some others

Contact Information

E-mail:
Private
Website URL:
Website URL  http://w3innovations.net

Comments

exiles.prx has no profile comments yet. Why not say hello?