lib/icu_ratings/tournament.rb in icu_ratings-1.6.1 vs lib/icu_ratings/tournament.rb in icu_ratings-1.7.0

- old
+ new

@@ -122,9 +122,13 @@ # See http://ratings.icu.ie/articles/18 (Part 2) phase_2_bonuses = false update_bonuses = true threshold = 0.1 end + if version >= 3 + # See http://ratings.icu.ie/articles/18 (Part 3) + max_iterations = [50, 50] + end # Phase 1. players.each { |p| p.reset } @iterations1 = performance_ratings(max_iterations[0], threshold) players.each { |p| p.rate! }