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.
Methods
Constants
| PER_ROUND | = | [3, 5, 11, 19, 30, 40] |
Public Instance methods
[ show source ]
# File lib/tournament/bracket.rb, line 31
31: def description
32: "Games are worth #{PER_ROUND.join(', ')} per round plus the seed number of the winning team."
33: end
[ show source ]
# File lib/tournament/bracket.rb, line 25
25: def score(pick, winner, loser, round)
26: if winner != UNKNOWN_TEAM && pick == winner
27: return PER_ROUND[round-1] + winner.seed
28: end
29: return 0
30: end