diff options
Diffstat (limited to 'lib/scoring/winner_takes_all.rb')
-rw-r--r-- | lib/scoring/winner_takes_all.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/scoring/winner_takes_all.rb b/lib/scoring/winner_takes_all.rb index 517dfd6..bf95781 100644 --- a/lib/scoring/winner_takes_all.rb +++ b/lib/scoring/winner_takes_all.rb @@ -1,10 +1,10 @@ module Scoring module WinnerTakesAll - def stats_needed + def self.stats_needed return [] end - def score(match, interface) + def self.score(match, interface) scores = {} match.players.each do |player| scores[player.user_name] = score_user(match.win?(player)) @@ -13,7 +13,7 @@ module Scoring end private - def score_user(win) + def self.score_user(win) win.nil? ? 0.5 : win ? 1 : 0 end end |