Jameson42/Brick-a-Bracket

DerbyTournament.GenerateMatch() creates bad state when only 3 MOCs are in round

Closed this issue · 1 comments

When only 3 MOCs are in a round, DerbyTournament.GenerateMatch() will only put MOCs in the first 3 lanes for the first 3 rounds, which leads to 3 matches of 1 MOC each in the 4th lane.

When the MOC count for the round is less than MatchSize, "Bye" MOCs should be added until the MOC count is MatchSize.

Only bad state is when 3 MOCs are in round... better solution would be to just add the "bye" user if there are exactly 3 non-bye MOCs in the round.