lib/modules/game.rb in codebreaker_karolina-0.1.1 vs lib/modules/game.rb in codebreaker_karolina-0.1.2
- old
+ new
@@ -33,10 +33,10 @@
def hint
return unless hints_left?
@user.used_hints += 1
- @hint.shuffle.pop
+ @hint.shuffle!.pop
end
private
def valid_code?(code)