Parent

Tournament::ScoringStrategy::ConstantValue

Class representing a scoring strategy where correct picks are worth 1 point each, regardless of round

Public Instance Methods

description() click to toggle source

(Not documented)

    # File lib/tournament/scoring_strategy.rb, line 28
28:     def description
29:       "Each correct pick is worth 1 point, regardless of the round."
30:     end
name() click to toggle source

(Not documented)

    # File lib/tournament/scoring_strategy.rb, line 25
25:     def name
26:       'Constant Value'
27:     end
score(pick, winner, loser, round) click to toggle source

(Not documented)

    # File lib/tournament/scoring_strategy.rb, line 22
22:     def score(pick, winner, loser, round)
23:       winner != Tournament::Bracket::UNKNOWN_TEAM && pick == winner ? 1 : 0
24:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.