Closed tswift242 closed 10 years ago
At program startup, we need to score players using default rules, and then update rules within the view.
EDIT: score players in constructor of Model, and store results in modesToPlayersMap so that they'll be seen in the View constructor.
Remove player default scores.
1) The cost of checking RuleMap equality is probably comparable to the cost of computing player scores, and so probably has negligible run-time savings. 2) Default scores are hard-coded to be from NFL.com. This is confusing (and potentially incorrect depending on the initial default rules) now that different fantasy sites' default rules are supported. However, we probably do want to calculate the default score at program start, after the default rules are set. Otherwise the "score" column would be all 0's, which would also be confusing.