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.
(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
(Not documented)
# File lib/tournament/scoring_strategy.rb, line 44
44: def name
45: 'Upset'
46: end
(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.
Generated with the Darkfish Rdoc Generator 1.1.6.