summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/scheduling/roundrobin.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/scheduling/roundrobin.rb b/lib/scheduling/roundrobin.rb
index a3a75c9..ffac9b6 100644
--- a/lib/scheduling/roundrobin.rb
+++ b/lib/scheduling/roundrobin.rb
@@ -1,4 +1,3 @@
-
module Scheduling
class RoundRobin
include Rails.application.routes.url_helpers
@@ -13,6 +12,9 @@ module Scheduling
#round robin should look like this
@team_pairs = Array.new(num_matches)
+ for i in 0..@match.teams.size
+ @team_pairs.push(@match.teams[i]
+ end
#team_pairs needs populated with the team objects and im not sure how to do that
end