class Statistic::StatisticRow

Attributes

difficult_name[RW]
init_attempts_count[RW]
init_hints_count[RW]
player_name[RW]
rating[RW]
used_attempts_count[RW]
used_hints_count[RW]

Public Class Methods

new(player:, difficult_init:) click to toggle source
# File lib/codebreaker/statistic/statistic_row.rb, line 7
def initialize(player:, difficult_init:)
  @rating = nil
  @player_name = player.name
  @difficult_name = difficult_init.name
  @init_attempts_count = difficult_init.attempts_count
  @init_hints_count = difficult_init.hint.hints_count
  @used_attempts_count = 0
  @used_hints_count = 0
end