Class: GameCodebreaker::Options
- Inherits:
-
Object
- Object
- GameCodebreaker::Options
- Defined in:
- lib/game_codebreaker/options.rb
Class Method Summary collapse
Class Method Details
.level(level = nil) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/game_codebreaker/options.rb', line 4 def self.level( level=nil ) case level when "low" { level: 15, hint: 2 } when "normal" { level: 10, hint: 1 } when "hard" { level: 5, hint: 0 } else { level: 15, hint: 2 } end end |