diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-04-22 01:46:13 -0400 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-04-22 01:46:13 -0400 |
commit | aa8437947b28dda73bcfaf3caccb738e5e2f48b3 (patch) | |
tree | 8d1a4994bb3fab9b4e89712ab43b416cdfeef3ed /lib/scoring_algorithms/Recommended.rb | |
parent | d3bee0f1ce0c5dc3fa741338bc6d9914e9e92787 (diff) |
Made Scoring Algorithm files use the statistics interface and accept matches for a more general approach.
Diffstat (limited to 'lib/scoring_algorithms/Recommended.rb')
-rw-r--r-- | lib/scoring_algorithms/Recommended.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/scoring_algorithms/Recommended.rb b/lib/scoring_algorithms/Recommended.rb deleted file mode 100644 index 8033bd2..0000000 --- a/lib/scoring_algorithms/Recommended.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Recommended - def self.score(votes, win, blowout) - fibonacci = Hash.new{ |h,k| h[k] = k < 2 ? k : h[k-1] + h[k-2] } - fibonacci[votes+3] + (win ? blowout ? 12 : 10 : blowout ? 5 : 7) - end -end - -#puts Recommended.score(4, true, false) |