Parent

Tournament::ScoringStrategy::TweakedJoshPatashnik

Class representing a scoring strategy where correct picks are worth the seed number of the winner times a per round multiplier (1,2,4,8,12,22)

Constants

MULTIPLIERS
(Not documented)

Public Instance Methods

description() click to toggle source

(Not documented)

    # File lib/tournament/scoring_strategy.rb, line 85
85:     def description
86:       "Each correct pick is worth the seed number of the winning team times a per round multiplier: #{MULTIPLIERS.join(', ')}"
87:     end
name() click to toggle source

(Not documented)

    # File lib/tournament/scoring_strategy.rb, line 82
82:     def name
83:       'Tweaked Josh Patashnik'
84:     end
score(pick, winner, loser, round) click to toggle source

(Not documented)

    # File lib/tournament/scoring_strategy.rb, line 76
76:     def score(pick, winner, loser, round)
77:        if winner != Tournament::Bracket::UNKNOWN_TEAM && pick == winner
78:           return MULTIPLIERS[round-1] * winner.seed
79:        end
80:        return 0
81:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.