Skip to content

Instantly share code, notes, and snippets.

@vpivo
Created April 6, 2013 00:07
Show Gist options
  • Save vpivo/5323608 to your computer and use it in GitHub Desktop.
Save vpivo/5323608 to your computer and use it in GitHub Desktop.
columns and rows
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