summaryrefslogtreecommitdiff
path: root/lib/scheduling
diff options
context:
space:
mode:
authorDavisLWebb <davislwebb@ymail.com>2014-04-25 12:47:37 -0400
committerDavisLWebb <davislwebb@ymail.com>2014-04-25 12:47:37 -0400
commitef45245dda03b5bba3d66432ed814fdec1f51af3 (patch)
treece33db5c476a872b1b7469ca868e90358832f50f /lib/scheduling
parent426c916c62d5ff28742821e482f291c5cecc0f64 (diff)
I think I properly populated the teams into the @teams_pair array. Its in roundRobin.rb. Someone may want to check to make sure I did it right.
Diffstat (limited to 'lib/scheduling')
-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