lib/modules/game.rb in codebreaker_karolina-0.1.0 vs lib/modules/game.rb in codebreaker_karolina-0.1.1
- old
+ new
@@ -3,9 +3,10 @@
require_relative 'difficulty'
module CodebreakerKarolina
class Game
include CodebreakerConstants
attr_accessor :user, :difficulty
+ attr_reader :secret_code
def start
@secret_code = generate_code.freeze
@hint = @secret_code.chars.uniq
end