Skip to content

Instantly share code, notes, and snippets.

@jeffreybaird
Created February 5, 2016 19:16
Show Gist options
  • Save jeffreybaird/eba246eccb13e00b5561 to your computer and use it in GitHub Desktop.
Save jeffreybaird/eba246eccb13e00b5561 to your computer and use it in GitHub Desktop.
puts('. '* 31 +'.')
puts(('. '* 7) + ('X ' * 17) + ('. ' * 8))
puts(('. '* 6) + 'X ' + ('. ' * 17) + 'X ' + ('. ' * 7))
puts(('. '* 5) + 'X ' + ('. ' * 19) + 'X ' + ('. ' * 6))
puts(('. '* 4) + 'X ' + ('. ' * 21) + 'X ' + ('. ' * 5))
puts(('. '* 3) + 'X ' + ('. ' * 23) + 'X ' + ('. ' * 4))
puts(('. '* 2) + 'X ' + ('. ' * 25) + 'X ' + ('. ' * 3))
puts(('. '* 3) + 'X ' + ('. ' * 23) + 'X ' + ('. ' * 4))
puts(('. '* 4) + 'X ' + ('. ' * 21) + 'X ' + ('. ' * 5))
puts(('. '* 5) + 'X ' + ('. ' * 19) + 'X ' + ('. ' * 6))
puts(('. '* 6) + 'X ' + ('. ' * 17) + 'X ' + ('. ' * 7))
puts(('. '* 7) + 'X ' + ('. ' * 15) + 'X ' + ('. ' * 8))
puts(('. '* 8) + 'X ' + ('. ' * 13) + 'X ' + ('. ' * 9))
puts(('. '* 9) + 'X ' + ('. ' * 11) + 'X ' + ('. ' * 10))
puts(('. '* 10) + 'X ' + ('. ' * 9) + 'X ' + ('. ' * 11))
puts(('. '* 11) + 'X ' + ('. ' * 7) + 'X ' + ('. ' * 12))
puts(('. '* 12) + 'X ' + ('. ' * 5) + 'X ' + ('. ' * 13))
puts(('. '* 13) + 'X ' + ('. ' * 3) + 'X ' + ('. ' * 14))
puts(('. '* 14) + 'X ' + ('. ' * 1) + 'X ' + ('. ' * 15))
puts(('. '* 15) + 'X ' + ('. ' * 15))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment