There are 3 courts allowing for 3 games a day so that each team plays only once every day.
There are 25 days of games in this season (75 games total).
How do I generate a schedule of 3 games per day until each team plays every other team once and then loop again until each team has played only twice and so on until there are no games remaining?
That algorithm is easy enough to implement as a server-side action, but because Bubble is so dumb with objects (and only supports 1-dimensional arrays), you kind of need a second action to handle configuring the matches. (Kind of like a special case of List Popper to make it easy to do a recursive backend workflow to create the individual matches.)
I fiddled with this today because it’s interesting, but I’m not finished just yet.
BTW, you could implement that algorithm described in that StackOverfow article in the front end using List Shifter, but it’s sort of not worth the effort as you really want to create your tournament, round, and match objects in the backend.
I assume your app is on a paid plan and you have access to backend workflows, yeah?