Created
June 25, 2016 05:44
-
-
Save KrakenHH/bcb3c924c53fdd22f453470057b14ca6 to your computer and use it in GitHub Desktop.
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
(0..3).each do |x| | |
diag_array = [] | |
3.times { |num| diag_array << flat_grid[x + (num)*7] } | |
arrays << diag_array | |
end | |
(7..10).each do |x| | |
diag_array = [] | |
3.times { |num| diag_array << flat_grid[x + (num)*7] } | |
arrays << diag_array | |
end | |
(14..17).each do |x| | |
diag_array = [] | |
3.times { |num| diag_array << flat_grid[x + (num)*7] } | |
arrays << diag_array | |
end |
baweaver
commented
Jun 25, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment