Parent

Tournament::ScoringStrategy::Basic

Class representing a scoring strategy where correct picks are worth 2 X the round number

Public Instance Methods

description() click to toggle source

(Not documented)

    # File lib/tournament/scoring_strategy.rb, line 14
14:     def description
15:       "Each correct pick is worth 2 times the round number."
16:     end
name() click to toggle source

(Not documented)

    # File lib/tournament/scoring_strategy.rb, line 11
11:     def name
12:       'Basic'
13:     end
score(pick, winner, loser, round) click to toggle source

(Not documented)

    # File lib/tournament/scoring_strategy.rb, line 8
 8:     def score(pick, winner, loser, round)
 9:       winner != Tournament::Bracket::UNKNOWN_TEAM && pick == winner ? round * 2 : 0
10:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.