jbrocky

Untitled

Feb 10th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.42 KB | None | 0 0
  1.   def stow_hand(hand)
  2.     braid_regex = /The braided (.+) is too long/
  3.     result = DRC.bput("stow #{hand}", 'You put', braid_regex, 'is too long')
  4.     dispose_trash(DRC.get_noun(Regexp.last_match(1))) if braid_regex.match(result)
  5.   end
  6.  
  7.   def get_item(item, container)
  8.     result = DRC.bput("get #{item} in my #{container}", 'You get', 'I could not', 'What were you', 'You need a free')
  9.     result =~ /^You get/
  10.   end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment