Code Golf: Bob Ross' The Joy of ASCII Art
SEP
01
2008
Here is my submission for the Bob Ross' The Joy of ASCII Art challenge. Code size: 116 bytes.
a=(['']*39).map{[' ']*79}
while gets
x=split
a[x[1].to_i][x[0].to_i]=x[2].to_i.chr
end
a.each{|x|puts x.join.rstrip}
Leave a comment:
Popular Posts
Search
Tags
actionmailer activerecord ajax apache apple barcamp caching capistrano centos code golf css db delete eager loading ebay email attachment erb flash ftp fun generators get haml helpers ie sucks javascript jquery lightbox lost merb net ftp paperclip passenger php plexus post presentation rails rails machine railsconf redesign rest rjs routes rss ruby ruby on rails safari script sinatra symfony text replacement tips tutorial twitter xhtml
Projects
© 2010 Travis Roberts. All rights reserved.