s

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: rubycode golf