lib/game.rb in codebreaker_paratskiy-0.2.3 vs lib/game.rb in codebreaker_paratskiy-0.2.4
- old
+ new
@@ -35,10 +35,10 @@
Matching.new(self).create_response
end
def save_result
- @stats.push(Statistic.generate_stats(self))
+ @stats.push(Statistic.generate_stats)
DbUtils.add(@db, stats)
end
def won?(result)
result == WINNING_RESULT