Created
September 7, 2015 04:59
-
-
Save adellhk/9ecb88181fc133a671d9 to your computer and use it in GitHub Desktop.
example case statement for a nested bingo array in ruby
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
case @ran_letter | |
when "b" | |
@column = 0 | |
when "i" | |
@column = 1 | |
when "n" | |
@column = 2 | |
when "g" | |
@column = 3 | |
when "o" | |
@column = 4 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment