You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A working port of the poetry game in Lua.
-Variables were given meaningful names
-Added a limit so it did not spit out infinite poetry at lightning speed.
-The variable U was changed to a boolean for readability.
-Adjusted the randomizing to work with any number of phrases since Dave Ahl encouraged users to write their own content for the poems.
From the classic book BASIC Computer Games, published by Creative Computing.
4
+
5
+
This program produces random verse which might loosly be considered in the Japanese Haiku style.
6
+
It uses 20 phrases in four groupd of five phrases each and generally cycles through the groups in order.
7
+
It inserts commas (random - 19% of the time), indentation (random - 22% of the time), and starts new paragraphs (18% probability, but at least once every 20 phrases).
8
+
9
+
The phrases in POETRY are somewhat suggestive of Edgar Allan Poe.
10
+
11
+
The Original author of this program is unkown. It was modified and reworked by Jim Bailey, Peggy Ewing, and Dave Ahl at DEC.
12
+
13
+
Ported to Lua by Allen West
14
+
**CHANGES
15
+
Added a limit so it did not spit out infinite poetry at lightning speed.
16
+
The variable U was changed to a boolean for readability.
17
+
Adjusted the randomizing to work with any number of phrases since Dave encouraged users to write their own content for the poems.
18
+
]]
19
+
20
+
limit=60
21
+
22
+
phrase_one= {"MIDNIGHT DREARY", "FIERY EYES", "BIRD OR FIEND", "THING OF EVIL", "PROPHET"}
0 commit comments