Module: Codebreaker::InitDifficulties
- Included in:
- CodebreakerGem
- Defined in:
- lib/codebreaker/init_difficulties.rb
Instance Method Summary collapse
Instance Method Details
#init_difficulties ⇒ Object
3 4 5 6 7 8 |
# File 'lib/codebreaker/init_difficulties.rb', line 3 def init_difficulties difficulty = [] difficulty << Difficulty.new(name: 'Easy', attempts: 15, hints: 2, level: 0) difficulty << Difficulty.new(name: 'Medium', attempts: 10, hints: 1, level: 1) difficulty << Difficulty.new(name: 'Hell', attempts: 5, hints: 1, level: 2) end |