Sha256: 30e7a6f07b7e63733a28d94e518b4cd53ea929a0edc1a4fb9885b53db583172c
Contents?: true
Size: 497 Bytes
Versions: 1
Compression:
Stored size: 497 Bytes
Contents
# frozen_string_literal: true require_relative 'autoload' class User attr_accessor :attempts_used, :hints_used attr_reader :difficulty, :name, :level def initialize(name, difficulty) validation(name, difficulty) @difficulty = difficulty @name = name @level = Settings::DIFFICULTY[@difficulty] @attempts_used = 0 @hints_used = 0 end def validation(name, difficulty) Validations.validate_name(name) Validations.validate_difficulty(difficulty) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
codebreaker_kirill-1.2.1 | lib/codebreaker_kirill/user.rb |