Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Juggernaut

Balanced and/or Cyclic Sports League Fixtures

Featured Replies

I'm trying to develop a Sports Competition Management System, which ties in with a few other features for my sports association.  We have a number of leagues, based on Gender, Age, etc. which vary in team numbers, for example some leagues may have 12 teams, other only 7.

 

Some teams play each other only once per season, other two + times, it depends on the size of the league.

 

I have a few scripts which combined build the schedule of games (Time, Date, Round of Play) and my next step is how to create a Balanced Schedule for an Even Number of Teams, or a Cyclic Schedule for Odd Number of Teams.

 

Obviously, an IF function determines which Scheduling Algorithm to use, based on the number of teams in that particular league.

 

My problem now is to automatically assign the teams participating in the matches, in a way described at the following links :idot:

 

I assume it involves a rather complex calculation at some point in the script, but after searching high and low for some inspiration, and a few trial and error attempts... Nothing tangible to show for it.

 

Even # of Teams (Balanced)

 

Odd # of Teams (Cyclic)

 

My file can be downloaded from this link

 

https://www.dropbox.com/s/3onnzm4w75s08r2/Association%20Admin.fmp12

 

 Thanks in Advance  :laugh:

  • Author

Thanks MartieH,

I have used that solution, but ran into a few problems when it came to a league with an Odd Number of Teams.  That being said, an Even number of teams works perfectly...

 

I've found a bundle of solutions that are available in Python, but I just can't figure out how to convert those solutions into a Filemaker Script.

 

http://stackoverflow.com/questions/11245746/league-fixture-generator-in-python

what has been suggested with an odd number of teams is to make a 'ghost' team so that you have an even number  - whoever is playing the ghost team gets a bye for that go-round.

 

M

  • Author

I've done that before Martie,

 

I'm really just looking for something that'll negate the need to remember the 'Ghost' option, which will also allow me to create x number of rounds, even if that means a round stops midway through, since there's only a limited number of weeks the competitions can go for before we MUST wrap things up in order to accommodate the finals.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.