diff options
Diffstat (limited to 'lib/scheduling/roundrobin.rb')
-rw-r--r-- | lib/scheduling/roundrobin.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scheduling/roundrobin.rb b/lib/scheduling/roundrobin.rb index d023cfb..fbb291e 100644 --- a/lib/scheduling/roundrobin.rb +++ b/lib/scheduling/roundrobin.rb @@ -7,7 +7,7 @@ module Scheduling end def create_matches - num_teams = (self.tournament.players.count/self.tournament.min_players_per_team).floor + num_teams = (tournament.players.count/tournament.min_players_per_team).floor num_matches = Float(num_teams/2)*(num_teams-1) end |