11
Now that other users have helped Trump build the wall, its time for you to climb it.
This is an ascii art challenge where you need to output a climbing wall with randomly placed holds.
A climbing wall is made up of panels each of which has between 3 and 10 holds and is 5 panels high. Each panel is 4 characters high and 10 characters across
We use |
to represent the side of the wall (the arête) and a -
to represent the edges of panels. The corners of the panels are shown by +
and the holds are shown as o
.
Finally, the wall must have America!
at the top and Mexico
at the bottom.
Your program should take no input unless input is required to run and should output something that looks similar to the below
This is an example output:
America!
+----------+
| o |
| o o |
| o o |
| o o |
+----------+
| o |
| o o |
| o o |
| o o |
+----------+
| o |
| o o |
| o o |
| o o |
+----------+
| o |
| o o |
| o o |
| o o |
+----------+
| o |
| o o |
| o o |
| o o |
+----------+
Mexico
This may be confusingly set out so it's structured more clearly below
Input
Zilcho. You should take no absolutely input.
Output
An ascii-art climbing wall made up of 5 panels, each one 6 lines by 12 columns with America!
centered at the top and Mexico
centered at the bottom. Each panel has an identical pattern that is randomly generated by the program. The panel pattern consists of a randomly distributed random number of holds, between 3 and 10.
Rules
- No input allowed
- I would say "no builtins" but if your language has a builtin for this, I will automatically accept it as the winner.
- This is code-golf so shortest code (in bytes) wins.
- The output without holds must be exactly the same as above, again without holds.
- Random is the random defined here
5Does random mean uniformly random, or does each possible layout just need a nonzero chance of occurring, or do I just need to have at least two possibilities? – Pavel – 2017-05-17T07:04:12.307
@Notts90 They should be the same, and pick a quantity randomly. This is mentioned in the post, but the randomness isn't defined. – Pavel – 2017-05-17T07:33:38.247
2I still think this would be a better challenge if every panel had to be different. – Shaggy – 2017-05-17T09:48:52.123
3This right here is my issue with the Sandbox. I had this challenge there for more than a month and have just decided to clear out my posts there. So I post this, thinking that every issue has been ironed out and this happens! – caird coinheringaahing – 2017-05-17T14:51:46.567
@Phoenix random has been defined in the linked page (edited in) and is the default meaning of random here. Anything else has to be defined by the OP – caird coinheringaahing – 2017-05-17T15:15:21.980
Would be funny to see this solved in TrumpScript – WORNG ALL – 2017-05-18T20:18:24.457
@WORNGALL unfortunately trumpscript doesn't have a random number generator :( – caird coinheringaahing – 2017-05-18T20:19:23.760
1@WORNGALL Fake news! Lies! The random is very important. Trumpscript has the BEST RANDOM GENERATOR you have ever seen. (All you have to do is link to the president's twitter feed!) – Level River St – 2017-05-22T01:10:47.957
@LevelRiverSt Bug report: Trumpscript RNG. Issue: RNG is biased to output "SAD!" more often than is statistically likely in natural language. – Chris – 2018-04-11T05:01:10.910