Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Case insensitive.
So, regex will trigger to AEIOU too.
This comment is hidden because it contains spoiler information about the solution
I really like the use of gsub here - I'd just be tempted to start with word.downcase! and we could have:
word.downcase!
word.gsub(/./) { |c| word.count(c) > 1 ? ')' : '(' }
I guess we're probably shoudn't modify incoming method arguments, but it makes the code super DRY in this case
Had trouble with this myself. The shuffle method described has to change the original deck of cards, not just return a new and shuffled array.