I like ascii art and I get bored a lot, so I found some ascii characters and started to make random things, 8-bit mario castle, mazes, and arches. I found that the arches could easily be stacked in a neat way.
╔═══════╗
║╔═════╗║
║║╔═══╗║║
║║║╔═╗║║║
╨╨╨╨─╨╨╨╨
Challenge
Create a program, function, or any other standard format that accepts an integer that is greater than or equal to 0 (unless you are doing the bonus) and outputs ascii art with the amount of arches specified.
Test Cases
Input:
7
Output:
╔═════════════╗
║╔═══════════╗║
║║╔═════════╗║║
║║║╔═══════╗║║║
║║║║╔═════╗║║║║
║║║║║╔═══╗║║║║║
║║║║║║╔═╗║║║║║║
╨╨╨╨╨╨╨─╨╨╨╨╨╨╨
Alt:
+-------------+
|+-----------+|
||+---------+||
|||+-------+|||
||||+-----+||||
|||||+---+|||||
||||||+-+||||||
||||||| |||||||
---------------
Input:
1
Output:
╔═╗
╨─╨
Alt:
+-+
| |
---
- If the integer is 0 then don't output anything
- This question will be in utf-8, each character will count as a "byte"
- This is codegolf so the shortest answer wins.
- You have the option of using
+-+
instead of╔═╗
,---
instead of╨─╨
, and|
instead of║
Bonus (not decided whether to allow this on the alternate version because it wouldn't be as hard)
-10% if the program supports negative numbers and flips the arches like so
╥╥╥╥─╥╥╥╥
║║║╚═╝║║║
║║╚═══╝║║
║╚═════╝║
╚═══════╝
+---+
at the top, sides of|
and a bottom of-----
which looks fine to me. Juanpotato, if you want to use non-ascii characters, please indicate the encoding in the question. As it stands I'm voting to close as unclear. \$\endgroup\$