diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-29 16:42:07 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-29 16:42:07 -0400 |
commit | d2da4866962e69fda4f3078afd19dbaf3d245882 (patch) | |
tree | ffe6b5f4453761b5cbc74bbc5db5c14ac30de345 /lib/scoring/winner_takes_all.rb | |
parent | 30445bb10809969ec5a006e7d2ca6f581168cf72 (diff) | |
parent | 8e94460ca7d5e17983778e0ae83f85ee40557cda (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.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/scoring/winner_takes_all.rb b/lib/scoring/winner_takes_all.rb index 9c83fb9..db494c6 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"] + def self.stats_needed(match) + 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 |