Method: NewSuperCodebreaker2021::Game#user_guess
- Defined in:
- lib/game.rb
#user_guess(code) ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'lib/game.rb', line 38 def user_guess(code) if code.to_i != 0 validate_user_code(code) elsif GUESS_COMMANDS.include?(code.to_sym) code.to_sym else false end end |