summaryrefslogtreecommitdiff
path: root/lib/scoring/marginal_peer.rb
diff options
context:
space:
mode:
authorguntasgrewal <guntasgrewal@gmail.com>2014-04-22 19:13:01 -0400
committerguntasgrewal <guntasgrewal@gmail.com>2014-04-22 19:13:01 -0400
commit38c2ff9637018d88db7083c76c133da3a72f4c31 (patch)
treeae5c381e7fe9493abfe8fa6c700df64648246fe2 /lib/scoring/marginal_peer.rb
parent3e86ffe1113a096541ea94567bffee79368fb863 (diff)
parent5c6d6dca48bf3d54f145e859e6d4c8b1befe1f09 (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'lib/scoring/marginal_peer.rb')
-rw-r--r--lib/scoring/marginal_peer.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/scoring/marginal_peer.rb b/lib/scoring/marginal_peer.rb
new file mode 100644
index 0000000..0e1cfa8
--- /dev/null
+++ b/lib/scoring/marginal_peer.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