Skip to content

Instantly share code, notes, and snippets.

@bramdemoor
Created November 10, 2014 18:32
Show Gist options
  • Save bramdemoor/81595e2afe10228810f7 to your computer and use it in GitHub Desktop.
Save bramdemoor/81595e2afe10228810f7 to your computer and use it in GitHub Desktop.
Print a rectangular ASCII "room" in console
w = 6
d = 15
wscale = 4
dscale = 2
puts "#"*w*wscale
((d*dscale) - 2).times do
print "#"
print " "*((w*wscale)-2)
puts "#"
end
puts "#"*w*wscale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment