Results 1 to 2 of 2

Thread: League Structure

  1. #1

    Thread Starter
    PowerPoster motil's Avatar
    Join Date
    Apr 2009
    Location
    Tel Aviv, Israel
    Posts
    2,143

    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

  2. #2
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431

    Re: League Structure

    Could you give an example with 6 or 8 teams? Inside each round, does each team play one game total?
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width