Created
July 7, 2014 03:31
-
-
Save luckyruby/a13ca6e897ee511d6b4a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def convert(card) | |
card.gsub('14','A').gsub('13','K').gsub('12','Q').gsub('11','J').gsub('10','T') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment