Parent

Tournament::ScoringStrategy::Upset

Class representing a scoring strategy where correct picks are worth a base amount per round (3, 5, 11, 19, 30 and 40) plus the seed number of the winner.

Constants

PER_ROUND
(Not documented)

Public Instance Methods

description() click to toggle source

(Not documented)

    # File lib/tournament/scoring_strategy.rb, line 47
47:     def description
48:       "Each correct pick is worth #{PER_ROUND.join(', ')} per round plus the seed number of the winning team."
49:     end
name() click to toggle source

(Not documented)

    # File lib/tournament/scoring_strategy.rb, line 44
44:     def name
45:       'Upset'
46:     end
score(pick, winner, loser, round) click to toggle source

(Not documented)

    # File lib/tournament/scoring_strategy.rb, line 38
38:     def score(pick, winner, loser, round)
39:       if winner != Tournament::Bracket::UNKNOWN_TEAM && pick == winner
40:         return PER_ROUND[round-1] + winner.seed
41:       end
42:       return 0
43:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.