View Single Post
Old 06-06-2008, 09:40 AM   #100
jtneve
Bat Boy
 
Join Date: Jan 2006
Location: Alexandria, VA
Posts: 9
Quote:
Originally Posted by jtneve View Post
I was just looking at the playoff odds report in our league, where we have a league with 2 sub-leagues. Each sub-league has 3 divisions, and we have a playoff format where each sub-league sends 3 division winners and 1 wild card winner to the playoffs. This report seems to give percentages for 2 wild cards per sub-league. You can view the report at Playoff Odds Report

I took at a look at your code, and at the point where you determine if there should be 1 or 2 wild card winners, you check if the number of divisions is even or odd, assigning 2 wild card winners if it's even, 1 if it's odd. Unfortunately, you seem to be taking the total number of divisions in the overall league (in our case 6) instead of the number of divisions in the sub-league (in our case 3).
I made a quick change to the code that fixed this problem in our league. Instead of counting all the divisions, it gets a count of the divisions in each sub-league, and uses that to determine the number of wild card teams. It'd be great if the changes could make it into the next release of this tool, and I can provide you with the diffs or the full file, if you like.

Send me an PM or email. I don't need to clutter this board up with code.

Nice tool, and hope I can help work out a few kinks.
jtneve is offline   Reply With Quote