Automatic poetry maker-
Creates romantic poetry for post-modern lovers
52 of Shakespeare's love sonnets are loaded into the app on the left.
1. An algorithm firstly selects a number between 1-5 [lineLength]
2. The it counts the total of words loaded, using the space as a separator [wordTotal]
3. Chooses a random number between 0- [wordTotal]
4. Prints that word
5. Repeats 1- 5 times as per [lineLength]
6. Prints a newline/carrage return
Repeats commands 1-6 above
Taking a random selection of 5 words. |