Parent

Tournament::ScoringStrategy::JoshPatashnik

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,16,32)

Constants

MULTIPLIERS
(Not documented)

Public Instance Methods

description() click to toggle source

(Not documented)

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

(Not documented)

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

(Not documented)

    # File lib/tournament/scoring_strategy.rb, line 57
57:     def score(pick, winner, loser, round)
58:        if winner != Tournament::Bracket::UNKNOWN_TEAM && pick == winner
59:           return MULTIPLIERS[round-1] * winner.seed
60:        end
61:        return 0
62:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.