Task is pretty simple. Your program should take a number N
from 1
to 20
and draw the following ASCII art.
When N=1
:
_____
| | |
| | |
| | |
| | |
| | |
| | |
| | |
|_|_|
\ /
\-/
v
When N=2
:
_______
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
|__|__|
\ /
\---/
\ /
v
When N=3
:
_________
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
|___|___|
\ /
\-----/
\ /
\ /
v
And etc. Trailing spaces are allowed.
This is a code-golf challenge so the shortest solution wins.
8n
pipes, for anyone too lazy to count. \$\endgroup\$