summaryrefslogtreecommitdiff
path: root/lib/scoring/marginal_peer.rb
blob: 13e179687137d0daee3bf13756f8c457dfd77c61 (plain)
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