diff options
-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) |