diff options
-rw-r--r-- | lib/scheduling/roundrobin.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/scheduling/roundrobin.rb b/lib/scheduling/roundrobin.rb index fbb291e..e149860 100644 --- a/lib/scheduling/roundrobin.rb +++ b/lib/scheduling/roundrobin.rb @@ -9,6 +9,9 @@ module Scheduling def create_matches num_teams = (tournament.players.count/tournament.min_players_per_team).floor num_matches = Float(num_teams/2)*(num_teams-1) + for i in 1..num_matches + tournament_stage.matches.create(status: 0, submitted_peer_evaluations: 0) + end end def create_round_array |