Skip to content

Instantly share code, notes, and snippets.

@MelanieS
Created May 5, 2012 05:47
Show Gist options
  • Save MelanieS/2600163 to your computer and use it in GitHub Desktop.
Save MelanieS/2600163 to your computer and use it in GitHub Desktop.
string = "| t%%> + ~+$ -+*> t% ~y r%%~, | s~%>&@ #|~ |$ -&@."
string = string.gsub(/[|]/, 'i')
#string = string.gsub(/[]/, '')
#string = string.gsub(/[]/, '')
#string = string.gsub(/[]/, '')
puts string
@MelanieS
Copy link
Author

MelanieS commented May 5, 2012

This is a puzzle. (see http://www.codegurl.com/2012/05/logic-puzzle-in-ruby.html for details.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment