From ab25aac502a768b6a530ada5c46d6aabe6a56c4c Mon Sep 17 00:00:00 2001 From: AndrewMurrell Date: Sat, 26 Apr 2014 22:47:58 -0400 Subject: Added READMEs for scheduling and started seeding in lib. --- lib/scheduling/elimination.rb | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'lib/scheduling/elimination.rb') diff --git a/lib/scheduling/elimination.rb b/lib/scheduling/elimination.rb index 074cb5c..4518cff 100644 --- a/lib/scheduling/elimination.rb +++ b/lib/scheduling/elimination.rb @@ -33,8 +33,7 @@ module Scheduling end end - def match_finished(match) - #what in the goddamn fuck does this mean + def finish_match(match) matches = match.tournament_stage.matches_ordered cur_match_num = matches.invert[match] unless cur_match_num == 1 @@ -55,17 +54,17 @@ module Scheduling height = [(matchHeight+50) * logBase**(depth-1) + 100, 500].max; str = <<-STRING - - - - - - - -STRING + + + + + + + + STRING base = 1 pBase = 1 (1..matches.count).each do |i| -- cgit v1.2.3-54-g00ecf