1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
module Scoring module MarginalPeer def stats_needed return [:rating] end def score(match, interface) scores = {} match.players.each do |player| scores[player.user_name] = interface.get_statistic(match, player, :rating) end scores end end end