69
7
Trump needs the wall constructed and you are going to do it! To most efficiently build his wall I have created a simple, repeatable pattern for you to use:
__ __
| |_| |
___| |___
- - - -
- - - - - - -
- - - - - - - -
———————————————
Trump will tell you how many wall segments he needs and you will build them to look just like this.
Here is the pattern:
__ __ <-- 4-2-3-2-4 ' _ _ '
| |_| | <-- 3-1-2-1-1-1-2-1-3 ' | |_| | '
___| |___ <-- 3-1-7-1-3 '_| |_'
- - - - <-- 1-3-1-3-1-3-1-1 '- - - - '
- - - - - - - <-- 1-1-...-1-1 ' - -...- - '
- - - - - - - - <-- 1-1-...-1-1 '- - ... - -'
——————————————— <-- 15 Unicode U+2014
Input will always be an integer >0.
Test cases:
1
__ __
| |_| |
___| |___
- - - -
- - - - - - -
- - - - - - - -
———————————————
2
__ __ __ __
| |_| | | |_| |
___| |______| |___
- - - - - - - -
- - - - - - - - - - - - - -
- - - - - - - -- - - - - - - -
——————————————————————————————
5
__ __ __ __ __ __ __ __ __ __
| |_| | | |_| | | |_| | | |_| | | |_| |
___| |______| |______| |______| |______| |___
- - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -- - - - - - - -- - - - - - - -- - - - - - - -- - - - - - - -
———————————————————————————————————————————————————————————————————————————
Since you need to do this fast, write the shortest program possible!
If it helps, I wrote the challenge first, title last ;)
21What is this I don't even – Conor O'Brien – 2015-12-23T04:03:02.257
4Was this language especially made for this answer? – Erdal G. – 2015-12-23T17:20:25.247
5
@ErdalG. No. Though CJam was indeed made by a PPCG regular (aditsu), it's been around for quite some time. You'll find it all over the site. :)
– Alex A. – 2015-12-23T17:33:03.913@AlexA. Ok make more sense now. I'm quite new here, thanks! :) – Erdal G. – 2015-12-23T18:07:45.557
@ErdalG. My pleasure. Welcome to the site! – Alex A. – 2015-12-23T18:23:21.420