Created
November 10, 2014 18:32
-
-
Save bramdemoor/81595e2afe10228810f7 to your computer and use it in GitHub Desktop.
Print a rectangular ASCII "room" in console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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