Inspiration

My father telling me how my mom always took hours in order to create a game schedule so that friends and family could play sand volleyball together with unique teams each time.

What it does

Basically tries to generate a schedule for two player teams on a single court without a player playing with the same player again.

How we built it

I built it using javascript and basically algorithms. Using loops and a little recursion, I was able to generate all unique teams and then place them together into games.

Challenges we ran into

did not have enough to to fix or create a proper design. It also isn't 100% accurate, however I tried to fix up the program by making it so that if there is an extra team that doesn't have anyone to play with, it plays with a previous team.

Accomplishments that we're proud of

I'm pretty proud of figuring out the basic algorithm for it so far. It was fun figuring out how prime numbers worked as well as probability, and implement those ideas into programming.

What we learned

I learned how probability is so useful in computer science.

What's next for teamgenerator

I'll have to fix it up so that it has a much better design overall(or even a design in the first place), and so that it can work for more than one court. I'll also eventually increase the design so that it works for at least 2 player teams too. Finally, I'll try and find a better algorithm that makes the program much more accurate overall. For example, the smallest number of games a group of 5 people on a single court can really have is 5 games in total. However my program makes it into 6. This is a logic error or a error in the way I'm trying to solve the program. video demo https://www.loom.com/share/3bdc8b15bb344f66a17a15c37dba6ed9

Built With

Share this project:

Updates