Based on the "Pretty Ugly" poem.
Input consists of a number of stanzas (positive integer), and four arrays/lists of strings, called the "negatives", "negations", "positives", and "filler" sentences.
You must output a "pretty ugly" poem with the specified number of stanzas. A stanza consists of a negative, negation, positive and filler sentence, in that order. Finally, the poem must end with the string (Now read bottom up)
.
In other words, the output must be a list of strings of the form [negative, negation, positive, filler, negative, negation, positive, filler, negative, ..., "(Now read bottom up)"]
, with the negative, negation, positive , filler
part repeated once per stanza.
Rules:
- The lines should be chosen at random from the lists
- Output can be in any format, as long as it's a comprehensible poem. Printing to STDOUT, returning a list of strings, returning a string with lines separated by commas, and so on are all allowed
- You may assume that the 4 lists are all non-empty, but not that they have the same length
- The number of stanzas can be zero. If so, the output is
(Now read bottom up)
- Shortest program (in bytes) wins
Sample input:
n = 4
negatives = [
"I am a terrible person",
"Everything I do is useless",
"I don't deserve to be loved",
"I will never succeed at anything"
]
negations = [
"It's foolish to believe that",
"I don't think it's reasonable to say that",
"I will never believe that",
"No one can convince me into thinking that"
]
positives = [
"I am beautiful inside and out",
"The people around me love me",
"I will succeed at my career",
"I can be successful"
]
fillers = [
"I just have to accept that",
"After all, it's pretty clear",
"So I think it's pretty obvious",
"It will be clear if you think about it"
]
Sample output:
I don't deserve to be loved
I don't think it's reasonable to say that
I will succeed at my career
After all, it's pretty clear
I don't deserve to be loved
I don't think it's reasonable to say that
I can be successful
I just have to accept that
Everything I do is useless
No one can convince me into thinking that
I can be successful
So I think it's pretty obvious
I don't deserve to be loved
It's foolish to believe that
I am beautiful inside and out
I just have to accept that
(Now read bottom up)