Skip to content

Instantly share code, notes, and snippets.

@mur-wtag
Created September 22, 2015 04:31
Show Gist options
  • Select an option

  • Save mur-wtag/658abf9ca75fae76acff to your computer and use it in GitHub Desktop.

Select an option

Save mur-wtag/658abf9ca75fae76acff to your computer and use it in GitHub Desktop.
[%w(20 8 1 14 11), %w(25 15 21)].each do |outer|
outer.each_with_index do |inner, index|
printf "\e[32m#{(inner.to_i + 64).chr.downcase}\e[0m" if index.even?
printf "\e[31m#{(inner.to_i + 64).chr}\e[0m" unless index.even?
end
printf ' '
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment