Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 31 lines (29 sloc) 1.27 KB
#!/usr/bin/env ruby
#
# This goal of this RubyLoCo Puzzle is to generate an ascii
# American Flag. Try to come up with a unique way to generate
# the flag. Below is the easiest implementation.
#
# Ruby not required! Use any langauge and pair up!
#
# If you complete the task here are some more advanced ideas:
# make the flag colored
# write a DSL to generate any flag
# animate the flag
# add a flag pole
# use emoji
#
# Happy Birthday America
puts '* * * * * * ' + '1111111111111111111111111111111111111111111'
puts ' * * * * * ' + '0000000000000000000000000000000000000000000'
puts '* * * * * * ' + '1111111111111111111111111111111111111111111'
puts ' * * * * * ' + '0000000000000000000000000000000000000000000'
puts '* * * * * * ' + '1111111111111111111111111111111111111111111'
puts ' * * * * * ' + '0000000000000000000000000000000000000000000'
puts '* * * * * * ' + '1111111111111111111111111111111111111111111'
puts '0000000000000000000000000000000000000000000000000000000'
puts '1111111111111111111111111111111111111111111111111111111'
puts '0000000000000000000000000000000000000000000000000000000'
puts '1111111111111111111111111111111111111111111111111111111'
puts '0000000000000000000000000000000000000000000000000000000'
puts '1111111111111111111111111111111111111111111111111111111'