summaryrefslogtreecommitdiff
path: root/lib/scheduling/roundrobin.rb
diff options
context:
space:
mode:
authorguntasgrewal <guntasgrewal@gmail.com>2014-04-26 18:23:53 -0400
committerguntasgrewal <guntasgrewal@gmail.com>2014-04-26 18:23:53 -0400
commit4035c852212671627a000cda7c1f8439b47a70d5 (patch)
tree124c59254c51dfb3d18492990e7b64d749c80893 /lib/scheduling/roundrobin.rb
parent8f19c2d5d32681601a63df291f04a90b6786e1cf (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.rb2
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