When you attempt to get_clues, you get an error:
NoMethodError: undefined method `captures' for nil:NilClass
var_answer = answermatch.captures[0].to_s
^^^^^^^^^
This is because the answermatch might be nil. I fixed it by placing that into an if block checking for nil answermatch and skipping if not - and then it works - but it doesn't.
Now it doesn't make ANY clues. It correctly gets categories, but never gets a single clue.
When you attempt to get_clues, you get an error:
NoMethodError: undefined method `captures' for nil:NilClass
This is because the answermatch might be nil. I fixed it by placing that into an if block checking for nil answermatch and skipping if not - and then it works - but it doesn't.
Now it doesn't make ANY clues. It correctly gets categories, but never gets a single clue.