class GemCodebreaker::GameStatistic
Attributes
attempts_total[R]
attempts_used[R]
date[R]
difficulty[R]
hints_total[R]
hints_used[R]
user_nickname[R]
Public Class Methods
new(game)
click to toggle source
# File lib/gem_codebreaker/classes/game_statistic.rb, line 7 def initialize(game) @user_nickname = game.config.user_nick_name @difficulty = game.config.difficulty @attempts_total = game.config.max_attempts @attempts_used = game.config.user_attempts @hints_total = game.config.max_hints @hints_used = game.config.user_hints @date = Date.today.to_s end