summaryrefslogtreecommitdiff
path: root/lib/scoring/marginal_peer.rb
blob: aa05f5e2144a9bf3c0e2c282a546466fe4404390 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module Scoring
	module MarginalPeer
		def self.stats_needed
			return [:rating]
		end

		def self.score(match, interface)
			scores = {}
			match.players.each do |player|
				scores[player.user_name] = interface.get_statistic(match, player, :rating)
			end
			scores
		end
	end
end