Sha256: f2347475b9fa2510478c2949b0065e1123829d6aa23c8e298ccaab8e865ea624
Contents?: true
Size: 532 Bytes
Versions: 2
Compression:
Stored size: 532 Bytes
Contents
# frozen_string_literal: true module BeforeGame class DifficultChooser DIFFICULT_VARIANTS = [ { name: 'easy', attempts: 15, hints: 2 }, { name: 'medium', attempts: 10, hints: 1 }, { name: 'hell', attempts: 5, hints: 1 } ].freeze attr_accessor :name, :attempts_count, :hint def initialize(difficult_variant:) @name = difficult_variant[:name] @attempts_count = difficult_variant[:attempts] @hint = BeforeGame::Hint.new(hints_count: difficult_variant[:hints]) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
codebreaker_kosinskiy-0.1.2 | lib/codebreaker/before_game/difficult_chooser.rb |
codebreaker_kosinskiy-0.1.0 | lib/codebreaker/before_game/difficult_chooser.rb |