lib/codebreaker/game.rb in codebreaker-mikhail-0.1.2 vs lib/codebreaker/game.rb in codebreaker-mikhail-0.1.3

- old
+ new

@@ -1,10 +1,11 @@ # frozen_string_literal: true module Codebreaker class Game include Validation + include FileStore attr_reader :hints, :user, :state, :secret_code def initialize(user) @user = user @@ -45,10 +46,10 @@ @state = Constants::LOSE true end - def show_difficulties + def self.show_difficulties Constants::DIFFICULTIES end def use_hint return if @copied_code.empty?