summaryrefslogtreecommitdiff
path: root/lib/seeding
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-27 20:24:51 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-27 20:24:51 -0400
commit2bc378643564451b872a52fdcf97d7ee8afa2108 (patch)
treea72f280e8cfbf267d83647f4e3e0605895e3672e /lib/seeding
parentdedb63d770af24eee6e73289499ba22ec607cbf2 (diff)
parent8891daf9f1b38dadd5d5873fd3703d246876cabc (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'lib/seeding')
-rw-r--r--lib/seeding/README.md5
-rw-r--r--lib/seeding/early_bird_seeding.rb2
-rw-r--r--lib/seeding/fair_ranked_seeding.rb2
-rw-r--r--lib/seeding/random_seeding.rb2
4 files changed, 6 insertions, 5 deletions
diff --git a/lib/seeding/README.md b/lib/seeding/README.md
index 67fc19b..596adea 100644
--- a/lib/seeding/README.md
+++ b/lib/seeding/README.md
@@ -1,4 +1,5 @@
Files in this directory should implement the following interface:
-- seed_matches(tournament)
- take the matches of a tournament and the players in a tournament, assign players to teams, and teams to matches (all must exist) \ No newline at end of file
+- `seed(tournament_stage)`
+ take a tournament stage, assign players to teams and teams to
+ matches (matches must exist) \ No newline at end of file
diff --git a/lib/seeding/early_bird_seeding.rb b/lib/seeding/early_bird_seeding.rb
index 30e15fc..f3fc6f9 100644
--- a/lib/seeding/early_bird_seeding.rb
+++ b/lib/seeding/early_bird_seeding.rb
@@ -1,6 +1,6 @@
module Seeding
class EarlyBirdSeeding
- def seed_matches(tournament)
+ def seed(tournament_stage)
matches = tournament.current_stage.matches
match = matches.first
match_num = 0
diff --git a/lib/seeding/fair_ranked_seeding.rb b/lib/seeding/fair_ranked_seeding.rb
index 4eb8c26..22c245e 100644
--- a/lib/seeding/fair_ranked_seeding.rb
+++ b/lib/seeding/fair_ranked_seeding.rb
@@ -1,6 +1,6 @@
module Seeding
class FairRankedSeeding
- def seed_matches(tournament)
+ def seed(tournament_stage)
matches = tournament.current_stage.matches
match = matches.first
match_num = 0
diff --git a/lib/seeding/random_seeding.rb b/lib/seeding/random_seeding.rb
index ec39e61..bc332ef 100644
--- a/lib/seeding/random_seeding.rb
+++ b/lib/seeding/random_seeding.rb
@@ -1,6 +1,6 @@
module Seeding
class RandomSeeding
- def seed_matches(tournament)
+ def seed(tournament_stage)
matches = tournament.current_stage.matches
match = matches.first
match_num = 0