lib/games/mastermind/game.rb in games_bfox-0.2.0 vs lib/games/mastermind/game.rb in games_bfox-0.3.0

- old
+ new

@@ -1,15 +1,17 @@ require_relative '../shared/game' +require 'logger' module MM class Game < Shared::Game attr_accessor :code_setter, :secret_code, :guess_evaluator, :current_guess, :current_result, :won_flag def local_setup self.code_setter = config.code_setter self.secret_code = config.secret_code - print secret_code - print "\n" + logger = Logger.new(STDOUT) + logger.level = Logger::DEBUG + logger.debug("The secret code is #{secret_code.join(",")}.") self.guess_evaluator = MM::GuessEvaluator.new self.current_guess = [] self.current_result = [] self.won_flag = false end