Method: Chadet::Play#do_hint
- Defined in:
- lib/chadet.rb
#do_hint ⇒ Object
173 174 175 176 177 178 179 180 181 |
# File 'lib/chadet.rb', line 173 def do_hint if @hint_used != @max_hint hint.flash @hint_used += 1 else ("Sorry, you've used #{@max_hint == 1 ? 'the' : 'up all'} #{@max_hint.to_s + " " unless @max_hint == 1}"\ + "hint#{'s' unless @max_hint == 1}.").red.flash end end |