lib/codeguessing/game.rb in codeguessing-0.4.2 vs lib/codeguessing/game.rb in codeguessing-0.4.3
- old
+ new
@@ -59,10 +59,11 @@
hash
end
def cur_score(name = 'Anonim')
hash = cur_game
- hash[:name] = name
+ hash[:name] = name
+ hash[:date] = Time.now.to_i
hash.delete(:answer)
hash.delete(:state)
hash
end