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}

Tagged: ruby, code golf


Leave a comment:




© 2010 Travis Roberts. All rights reserved.