Skip to content

Instantly share code, notes, and snippets.

@adellhk
Created September 7, 2015 04:59
Show Gist options
  • Save adellhk/9ecb88181fc133a671d9 to your computer and use it in GitHub Desktop.
Save adellhk/9ecb88181fc133a671d9 to your computer and use it in GitHub Desktop.
example case statement for a nested bingo array in ruby
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