diff options
author | guntasgrewal <guntasgrewal@gmail.com> | 2014-04-26 18:23:53 -0400 |
---|---|---|
committer | guntasgrewal <guntasgrewal@gmail.com> | 2014-04-26 18:23:53 -0400 |
commit | 4035c852212671627a000cda7c1f8439b47a70d5 (patch) | |
tree | 124c59254c51dfb3d18492990e7b64d749c80893 /lib/scheduling/roundrobin.rb | |
parent | 8f19c2d5d32681601a63df291f04a90b6786e1cf (diff) |
Removed the self.tourn from roundrobin.rb. Also, last time we meant meat as in weiners. Super fat ones. Also Luke gave Davis and I some broken ass code.
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 |