Created
April 6, 2013 00:07
-
-
Save vpivo/5323608 to your computer and use it in GitHub Desktop.
columns and rows
This file contains 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
die_array= [["A", "A", "E", "E", "G", "N"], | |
["E", "L", "R", "T", "T", "Y"], | |
["A", "O", "O", "T", "T", "W"], | |
["A", "B", "B", "J", "O", "O"], | |
["E", "H", "R", "T", "V", "W"], | |
["C", "I", "M", "O", "T", "U"], | |
["D", "I", "S", "T", "T", "Y"], | |
["E", "I", "O", "S", "S", "T"], | |
["D", "E", "L", "R", "V", "Y"], | |
["A", "C", "H", "O", "P", "S"], | |
["H", "I", "M", "N", "Q", "U"], | |
["E", "E", "I", "N", "S", "U"], | |
["E", "E", "G", "H", "N", "W"], | |
["A", "F", "F", "K", "P", "S"], | |
["H", "L", "N", "N", "R", "Z"], | |
["D", "E", "I", "L", "R", "X"]] | |
position = 0 | |
column_array = [] | |
die_array.each do |i| | |
column_array << i[position] | |
end | |
puts column_array.inspect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment