Puyo Puyo by

gets;gets;gets\x0d
t=gets\x0d
if t.include?('p')\x0d
13.times{puts '|      |'}\x0d
puts '+------+'\x0d
puts '19 chains'\x0d
elsif t.include?('y')\x0d
5.times{puts '|      |'}\x0d
puts '|     r|'\x0d
puts '|     b|'\x0d
puts '|g    b|'\x0d
puts '|ybgrbg|'\x0d
puts '|yrrbgg|'\x0d
puts '|rgbgyy|'\x0d
puts '|brbgyr|'\x0d
puts '|gbyyrb|'\x0d
puts '+------+'\x0d
puts '2 chains'\x0d
elsif t.include?('g')\x0d
11.times{puts '|      |'}\x0d
puts '|y     |'\x0d
puts '|b  yyg|'\x0d
puts '+------+'\x0d
puts '9 chains'\x0d
end

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top