diff options
author | DavisLWebb <davislwebb@ymail.com> | 2014-04-25 12:48:29 -0400 |
---|---|---|
committer | DavisLWebb <davislwebb@ymail.com> | 2014-04-25 12:48:29 -0400 |
commit | 2aaaf29ae291edc34d0512ce9a812fc0de14f76b (patch) | |
tree | 4b31ef69ad7910bdc243a971909c11c011586db3 | |
parent | ef45245dda03b5bba3d66432ed814fdec1f51af3 (diff) |
fixed a dumb mistake
-rw-r--r-- | lib/scheduling/roundrobin.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/scheduling/roundrobin.rb b/lib/scheduling/roundrobin.rb index ffac9b6..10af20e 100644 --- a/lib/scheduling/roundrobin.rb +++ b/lib/scheduling/roundrobin.rb @@ -20,16 +20,14 @@ module Scheduling #this is called when a round has completed def rotate - - for i in 0..@team_pairs-2 - hold = @team_pairs.shift - @team_pairs.rotate! - @team_pairs.unshift(hold) + hold = @team_pairs.shift + @team_pairs.rotate! + @team_pairs.unshift(hold) # for j in 0..4 # puts "#{array[j]}, #{array[j+(array.size/2)-1]}" # end # puts "\n\n" - end + end def match_finished(match) |