summaryrefslogtreecommitdiff
path: root/lib/scheduling
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-24 17:10:24 -0400
committertkimia <tkimia@purdue.edu>2014-04-24 17:10:24 -0400
commitdd9a7a6b55fd3a6a494ba41fc133b1f1056c66a9 (patch)
tree599cb31fb4ced6ee7a2f268a319cddb4df2a373c /lib/scheduling
parentcb9ab169f9d3e650deef23841c3e70bc62cbca34 (diff)
fixed an off-by-one error when moving teams into matches
Diffstat (limited to 'lib/scheduling')
-rw-r--r--lib/scheduling/elimination.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scheduling/elimination.rb b/lib/scheduling/elimination.rb
index ca48f14..e66a29a 100644
--- a/lib/scheduling/elimination.rb
+++ b/lib/scheduling/elimination.rb
@@ -32,7 +32,7 @@ module Scheduling
# if the match is full, move to the next match, otherwise move to the next team
if (team_num == self.tournament.min_teams_per_match)
match_num -= 1
- team_num = 0
+ team_num = 1
else
team_num += 1
end