lib/codebreaker/game.rb in codebreaker_kub-0.1.6 vs lib/codebreaker/game.rb in codebreaker_kub-0.1.7
- old
+ new
@@ -74,11 +74,11 @@
name: @name,
difficulty: @difficulty,
attempts: difficulty_option[:attempts],
hints: difficulty_option[:hints],
code: @code,
- attempts_left: @attempts_left,
- hints_left: @hints_left,
+ used_attempts: difficulty_option[:attempts] - @attempts_left,
+ used_hints: difficulty_option[:hints] - @hints_left,
win: win?
}
end
end
end