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