home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 5
/
ctrom5b.zip
/
ctrom5b
/
PROGRAM
/
DIVERSEN
/
TIPI2A
/
HAIKU.TPI
< prev
next >
Wrap
Text File
|
1994-09-29
|
4KB
|
144 lines
# HAIKU.TPI by Kent Peterson
# 11/28/93
deftable preps
"on" "beside" "in" "beneath" "of"
"above" "under" "by" "over"
"against" "near"
endtable
define prep
11 random preps
print$ " " print$
enddef
defvar artflag
define art
2 random 1 - dup
if "a" else "the"
endif artflag store
print$ " " print$
enddef
define makean
row column 1 - locate "n " print$
enddef
deftable adjs
"autumn" "hidden" "bitter" "misty"
"silent" "empty" "dry" "dark"
"summer" "icy" "delicate" "quiet"
"white" "cool" "spring" "winter"
"dappled" "twilight" "dawn" "crimson"
"wispy" "azure" "blue" "billowing"
"broken" "cold" "damp" "falling"
"frosty" "green" "long" "late"
"lingering" "limpid" "little" "morning"
"muddy" "old" "red" "rough"
"still" "small" "sparkling" "throbbing"
"vermilion" "wandering" "withered" "wild"
"black" "young" "holy" "solitary"
"fragrant" "aged" "snowy" "proud"
"floral" "solitary" "divine" "polished"
"ancient" "purple" "lively" "nameless"
endtable
deftable nouns
"waterfall" "river" "breeze" "moon"
"rain" "wind" "sea" "morning"
"snow" "lake" "sunset" "pine"
"shadow" "leaf" "dawn" "turtle"
"forest" "hill" "cloud" "meadow"
"sun" "glade" "bird" "brook"
"butterfly" "bush" "dew" "dust"
"field" "fir" "flower" "firefly"
"feather" "grass" "haze" "mountain"
"night" "pond" "darkness" "snowflake"
"silence" "sound" "sky" "shape"
"surf" "thunder" "violet" "water"
"wildflower" "wave" "stone" "mouse"
"sun" "wood" "dream" "cherry"
"tree" "fog" "frost" "voice"
"paper" "frog" "smoke" "star"
endtable
deftable verbs
"shakes" "drifts" "has stopped" "struggles"
"has fallen" "has passed" "sleeps" "creeps"
"flutters" "has risen" "is falling" "trickles"
"murmers" "is floating" "breaking" "jumps"
"is dreaming" "sleeps" "falls" "wanders"
"waits" "fades" "stands" "dying"
"is drawing" "singing" "rises" "paints"
"capturing" "flying" "lies" "picked up"
"gathers in" "invites" "separates" "eats"
"plants" "digs into" "hears" "weeping"
"facing" "mourns" "tastes" "hear"
"shaking" "walks" "builds" "searches for"
"piercing" "craves" "departing" "opens"
"falling" "confronts" "illuminates" "breaking"
"settles" "reaches" "keeps" "closes"
"leaves" "warms" "explodes" "drawing"
endtable
define phrase
artflag fetch
if 0 artflag store
dup$ 1 left$ "aeiou" swap$
instr drop$ drop$ if makean endif
endif
print$ " " print$
enddef
define adj
64 random adjs phrase
enddef
define noun
64 random nouns phrase
enddef
define verb
64 random verbs phrase
enddef
define h1
art adj noun cr
art noun verb prep art noun cr
adj adj noun cr
enddef
define h2
art adj noun verb cr
art adj adj noun cr
verb art adj noun cr
enddef
define h3
art adj adj noun cr
prep art adj noun cr
art noun verb cr
enddef
define h4
noun prep art noun cr
art adj noun prep art noun cr
adj noun cr
enddef
deftable haikus
h1 h2 h3 h4
endtable
define haiku
4 random haikus
enddef
randomize
begin
cls haiku
begin key dup if dup endif until
27 =
until