slashinfty / tournament-organizer

JavaScript library for running tournaments
https://slashinfty.github.io/tournament-organizer/
MIT License
51 stars 18 forks source link

Bugs on players order and pair - Swiss #3

Closed rafaelevoinfo closed 3 years ago

slashinfty commented 3 years ago

"Allowing pairs between players who have already played"

I implemented this simple fix. It was overlooked in a previous fix. I also used the same fix for Dutch pairings.

"Players were not being sorted based on seed value"

This has been implemented inside the algorithm, rather than when starting the tournament.

"Bye assigned twice to same player"

This is allowed, but should be avoided when at all possible. I've added a sorting to make it less likely to occur.