Sha256: c9b16fdc5673d294f1139c0531c20d00891c7a86a0a4d799a53a49e7d77b5319

Contents?: true

Size: 548 Bytes

Versions: 1

Compression:

Stored size: 548 Bytes

Contents

module Statistic
  class StatisticRow
    attr_accessor :player_name, :init_attempts_count, :init_hints_count,
                  :used_attempts_count, :used_hits_count, :difficult_name,
                  :rating

    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_hits_count = 0
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
codebreaker_kosinskiy-0.1.0 lib/codebreaker/statistic/statistic_row.rb