|
-
Jan 17th, 2010, 08:02 AM
#1
League Structure
Hello guys!
I'm building sport game and i really have hard time to find the correct formula of how to automate the building of each league games structure.
leagues can come in various number of teams (eg. 4, 6,8,10...)
each season is built from two round and in each round every team playing one match against each other.
to make it even harder each team should play every second match in its own Arena...
so if league is built from 4 teams it should be something like
First half of the season:
Round 1
Team A Vs Team B
Team C Vs Team D
Round 2
Team A Vs Team C
Team D Vs Team B
Second Half of the Season
Round 1
Team C Vs Team A
Team B Vs Team D
Round 2
Team D Vs Team C
Team B Vs Team A
if anyone can point me to the right direction it will be great.
Thanks!
* Rate It  If you Like it
__________________________________________________________________________________________
" Programming is like sex: one mistake and you’re providing support for a lifetime."
Get last SQL insert ID 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|