diff options
author | tkimia <tkimia@purdue.edu> | 2014-04-22 01:50:36 -0400 |
---|---|---|
committer | tkimia <tkimia@purdue.edu> | 2014-04-22 01:50:36 -0400 |
commit | 9c0e7d91ec76c44ca63f87b2bcd46ff16cacc38b (patch) | |
tree | 163b6c1eb5d9b97a8836f176e7d90f209458ce04 /lib/scoring_algorithms/MarginalPeer.rb | |
parent | d75fe3934366ea5e2581df6111c6bccdb77d1e95 (diff) | |
parent | aa8437947b28dda73bcfaf3caccb738e5e2f48b3 (diff) |
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'lib/scoring_algorithms/MarginalPeer.rb')
-rw-r--r-- | lib/scoring_algorithms/MarginalPeer.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/scoring_algorithms/MarginalPeer.rb b/lib/scoring_algorithms/MarginalPeer.rb new file mode 100644 index 0000000..0e1cfa8 --- /dev/null +++ b/lib/scoring_algorithms/MarginalPeer.rb @@ -0,0 +1,15 @@ +require 'ScoringAlgorithm' + +class MarginalPeer < ScoringAlgorithm + + def self.score(match, interface) + match.players.each do |player| + scores[player.user_name] = scoreUser(interface.getStatistic(match, player, rating)) + end + scores + end + + def self.score(rating) + rating + end +end
\ No newline at end of file |