How we managed to do a 82 game season over 2 2k leagues

Discussion in '2K NHL Hockey' started by Tris10, Apr 13, 2006.

  1. Tris10

    Tris10 Site Founder

    Joined:
    Jun 5, 2003
    Messages:
    22,372
    Discord:
    tris1o#0
    Trophy Points:
    1,971
    Location:
    Toronto
    Ratings:
    +17,741 / 89 / -327
    Leaguegaming is the first league to do a full 82 game season with the exact NHL schedule format while using a 2k league.
    The NHL schedule format for this year is you play everyone in your division 8 times, everyone else in your conference 4 times and 2 division's
    from the other conference once.

    To understand the list of problems better, one most understand our format.
    As said above, we do a full 30 team 82 game season. The season is broken up into 18 weeks.
    Each week a team has 3 games on their schedule. We also division the season into 2 half's where each half there are about 17 other games on that teams schedule. These are known as "wildcard" games and can be played
    at any point based on which half of the season we are currently in.

    The first problem is that it is IMPOSSIBLE to make the nil schedule fit into a 2k league, The reason is it's a mathematical impossibility to have
    all games match up over their 82 "week" format.

    Our Solution: We used 2, 2k league's with the intention that a lot of "space filler" games will never be played.
    The first league will be used for all "week games" ( weeks 1-18 ). This 2k league was made with the length of 74 games, or 74 "2k weeks".
    The other league was used for all wildcard games and made with the length of 44 "2k weeks"

    The Second Problem: is that our schedule calls for a Team's games vs. every other team to be played in a certain order. For example Toronto's games vs. PHI schedule may call
    for the first game to be played at PHI while the next 2 back in Toronto and the last back in PHI. To control this we discovered how the 2k league would determine what the
    next game to be played is for teams that play each other multiple time's, It will always find the first free game based on which game has the lower 2k "week".
    So for example if on the 2k league, it read :
    Week 11 Tor @ Phi
    Week 25 PHi @ Tor
    Weeek 64 PHI @ Tor

    It would take the week 11 game to be played first, then the week 25 then the week 64

    This turned out to be an incredibly difficult problem to solve. Every team's schedule would not only had to be hand done, but
    verified that the order in which games have to show up on the 2k site match that order in which these games need to be played on leaguegaming.
    There were numerous schedule conflicts where it was impossible for every team vs. every other team to match up correctly. To solve these
    "filler games" had to be inserted. These games are inserted into the schedule with the intent to never be played but "Sim'd" by the admin before the season starts. With those games out of the way, the correct order for team vs. another team can be preserved. Those sim'd games are then recorded in the scoreboard as games to completely ignore, to never be scraped. This way we will get the true team record and stats.

    To come up with the schedule, I made 8 scripts. These scripts helped me to come up with the best possible solution for each 2k week and who plays who.
    Other scripts were created to help organize all "filler" games and the best solution for that, and other scripts were made so that the integrity was never compromised. IE that a team never played twice in the same week ect

    It took about a total of 5 days to come up with the schedule and how it should be for a 2k league, Another 4 days spread over 2 people to insert all the games into the 2k league's
    A total of 1770 games had to be scheduled and inserted by hand.

    The process was incredible long, but we hope it's worth it. We hope the people in season 8 enjoy this season and appreciate what was needed
    to get this task done.

    -Tris10
     
  2. t_roy

    t_roy Well-Known Member

    Joined:
    Jan 17, 2004
    Messages:
    2,172
    Trophy Points:
    1,290
    Location:
    Louisville, Kentucky
    Ratings:
    +0 / 0 / -0
    Many Thanks for those individuals involved. No one ever really understands what it takes to do this league especially Season 8.

    Thanks.

    Troy.
     
    No Streaming Account
  3. swiper19

    swiper19 Well-Known Member

    Joined:
    Aug 12, 2004
    Messages:
    9,846
    Trophy Points:
    1,290
    Ratings:
    +0 / 0 / -0
    it will be worth it.
     
    No Streaming Account
  4. nosice

    nosice Only Texans Fan @ LG

    Joined:
    Mar 11, 2004
    Messages:
    4,523
    Trophy Points:
    1,290
    Location:
    Raleigh, NC
    Ratings:
    +0 / 0 / -0
    i dont understand, can we do something different... :p :laugh: :wink:



    Got to say, pretty creative... Good job
     
    No Streaming Account
  5. canucks33

    canucks33 Well-Known Member

    Joined:
    Aug 30, 2003
    Messages:
    4,681
    Trophy Points:
    1,290
    Location:
    seattle, wa & langley, bc
    Ratings:
    +0 / 0 / -0
    :laugh: :laugh: nicely done...... even mathematically hard to understand your statement, Tris. :laugh:
     
    No Streaming Account
  6. Virtual Assassin

    Virtual Assassin Champ

    Joined:
    Sep 19, 2003
    Messages:
    4,920
    Trophy Points:
    1,290
    Location:
    Ajax
    Ratings:
    +0 / 0 / -0
    Very, very, very, very impressive.


    I can't wait to play my first game. This is going to be best LG season ever. Win or Lose
     
    No Streaming Account
  7. NYEXTREME

    NYEXTREME Well-Known Member

    Joined:
    Jun 16, 2003
    Messages:
    1,762
    Trophy Points:
    1,290
    Location:
    Toronto, Canada
    Ratings:
    +0 / 0 / -0
    thanks to all the individuals involved this season will be the best.
     
    No Streaming Account
  8. bogeyexpress

    bogeyexpress Well-Known Member

    Joined:
    Jul 17, 2005
    Messages:
    782
    Trophy Points:
    1,290
    Location:
    NE
    Ratings:
    +0 / 0 / -0
    well done!
     
    No Streaming Account
  9. Virtual Assassin

    Virtual Assassin Champ

    Joined:
    Sep 19, 2003
    Messages:
    4,920
    Trophy Points:
    1,290
    Location:
    Ajax
    Ratings:
    +0 / 0 / -0
    This was for last season Bogey!
     
    No Streaming Account
  10. Tris10

    Tris10 Site Founder

    Joined:
    Jun 5, 2003
    Messages:
    22,372
    Discord:
    tris1o#0
    Trophy Points:
    1,971
    Location:
    Toronto
    Ratings:
    +17,741 / 89 / -327
    Another season done!
    For those curious on some of the tools i created to do this, here is a screen shot
    [​IMG]
    Each week has to be looked at, then for each hole, each game vs game has to then be researched to make sure there is no conflict. Times that by about 300 times, it makes for a long and complicated process
     
  11. OptimusPrime329

    OptimusPrime329 BAD TO THE BONE ON HOCKEY

    Joined:
    Jan 15, 2008
    Messages:
    30
    Trophy Points:
    1,140
    Location:
    Denver Colorado
    Ratings:
    +0 / 0 / -0
    I would like to join The colorado avalanche
     
    No Streaming Account
  12. kiddstyle

    kiddstyle Well-Known Member

    Joined:
    Sep 17, 2006
    Messages:
    1,250
    Trophy Points:
    1,590
    Ratings:
    +0 / 0 / -0
    lol..
     
    No Streaming Account
  13. KerrZee

    KerrZee Im Back!!!!

    Joined:
    Sep 13, 2007
    Messages:
    653
    Trophy Points:
    2,341
    Location:
    Alberta Canada
    Ratings:
    +44 / 0 / -0
    :( but i wanted the avalanche... hehe:razz:
     
    No Streaming Account
  14. pop0331

    pop0331 Well-Known Member

    Joined:
    Jul 18, 2003
    Messages:
    2,561
    Trophy Points:
    1,290
    Location:
    Jersey shore
    Ratings:
    +0 / 0 / -0
    I would like to be

    [​IMG]
     
    No Streaming Account
  15. KerrZee

    KerrZee Im Back!!!!

    Joined:
    Sep 13, 2007
    Messages:
    653
    Trophy Points:
    2,341
    Location:
    Alberta Canada
    Ratings:
    +44 / 0 / -0
    haha wtf
     
    No Streaming Account
  16. jcon77

    jcon77 Well-Known Member

    Joined:
    Jul 6, 2005
    Messages:
    2,999
    Trophy Points:
    1,290
    Location:
    Columbus, OH
    Ratings:
    +1 / 0 / -0
    [​IMG]

    Thats my mascot
     
    No Streaming Account