summaryrefslogtreecommitdiff
path: root/lib/scoring/winner_takes_all.rb
diff options
context:
space:
mode:
authornfoy <nfoy@purdue.edu>2014-04-29 14:59:37 -0400
committernfoy <nfoy@purdue.edu>2014-04-29 14:59:37 -0400
commita4f0f384efd1b56880c7acc58a492ddbd0c02583 (patch)
treedd0adec2600ee1a362af2795971be3c29e1fc58e /lib/scoring/winner_takes_all.rb
parent4e69e23c20b9b8e54d28c88a95bfb5105aaca384 (diff)
parent577f203243b1ac914a3ee3f4635005be06d637c6 (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'lib/scoring/winner_takes_all.rb')
-rw-r--r--lib/scoring/winner_takes_all.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/scoring/winner_takes_all.rb b/lib/scoring/winner_takes_all.rb
index 9c83fb9..5fc188a 100644
--- a/lib/scoring/winner_takes_all.rb
+++ b/lib/scoring/winner_takes_all.rb
@@ -1,15 +1,14 @@
module Scoring
module WinnerTakesAll
def self.stats_needed
- #return ["win"]
- ["win", "numDeaths", "turretsKilled", "championsKilled", "minionsKilled", "assists"]
+ return ["win"]
end
def self.score(match)
scores = {}
match.users.each do |user|
stats = Statistic.where(user: user, match: match)
- scores[user] = score_user(stats.where(name: "win").first.value)
+ scores[user] = score_user(stats.where(name: "win").first)
end
scores
end