lib/app/entities/game.rb in codebreaker_ruban-0.3.1 vs lib/app/entities/game.rb in codebreaker_ruban-0.3.2
- old
+ new
@@ -1,10 +1,10 @@
# frozen_string_literal: true
module CodebreakerRuban
class Game
include Validation
- attr_reader :difficulty, :attempts_total, :hints_total, :user, :secret_code
+ attr_reader :difficulty, :attempts_total, :hints_total, :user, :secret_code, :datetime
attr_accessor :attempts_used, :hints_used, :errors
LENGTH_GUESS = 4
RANGE_SECRET_CODE = (1..6).freeze
EASY = { hints_total: 2, attempts_total: 15, difficulty: 'easy' }.freeze