# Creating a schedule for a group of teams in a league. (Similar to Football Manager)

**URL:** <https://forums.unrealengine.com/t/creating-a-schedule-for-a-group-of-teams-in-a-league-similar-to-football-manager/131186>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [September 16, 2019, 6:53pm UTC](https://forums.unrealengine.com/t/creating-a-schedule-for-a-group-of-teams-in-a-league-similar-to-football-manager/131186 "2019-09-16T18:53:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dread\_Fort](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dread\_Fort](https://forums.unrealengine.com/u/Dread_Fort)\
**Post date:** [September 16, 2019, 6:53pm UTC](https://forums.unrealengine.com/t/creating-a-schedule-for-a-group-of-teams-in-a-league-similar-to-football-manager/131186/1 "2019-09-16T18:53:31Z")

</div>

How would I go about doing this with Blueprint? I have a league of 9 teams, I will be giving each team their own actor blueprint to store variables such as wins, losses, players, elo, etc.\*\* From there I need to have an 18 week schedule where each team plays each other twice.\*\*

_ **Brainstorming** _ I tried to achieve this by doing an array containing the team names, and then when the schedule is called to be created select a random integer index to that array, and set that random int against another one to play. From there remove both random integers from the array. However this introduced several bugs and ultimately didn’t work no matter how many iterations I tried.

Does anyone else have a general idea or avenue for me to explore? Not necessarily a complete blueprint. Just some ideas?

Thank you!

---

<div class="post-metadata">

**Author:** ![Dread\_Fort](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dread\_Fort](https://forums.unrealengine.com/u/Dread_Fort)\
**Post date:** [September 16, 2019, 8:28pm UTC](https://forums.unrealengine.com/t/creating-a-schedule-for-a-group-of-teams-in-a-league-similar-to-football-manager/131186/2 "2019-09-16T20:28:33Z")

</div>

I realized that only having 9 teams could cause issues, for this example lets say 10 teams.

---

<div class="post-metadata">

**Author:** ![Tullius43](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tullius43](https://forums.unrealengine.com/u/Tullius43)\
**Post date:** [September 23, 2019, 7:53pm UTC](https://forums.unrealengine.com/t/creating-a-schedule-for-a-group-of-teams-in-a-league-similar-to-football-manager/131186/3 "2019-09-23T19:53:06Z")

</div>

Use a “dummy” team in the last spot ( = No 10) and assign all active teams a number between 1- 9 (or 0 - 8 and the dummy team as no 9). Then you can create a round robin schedule.
