summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--beescroll.dat1
-rw-r--r--beescroll.lua104
-rw-r--r--verbs.txt135
3 files changed, 148 insertions, 92 deletions
diff --git a/beescroll.dat b/beescroll.dat
index 932320e..54772cb 100644
--- a/beescroll.dat
+++ b/beescroll.dat
@@ -1 +1,2 @@
file cities.txt beescroll.lua
+file verbs.txt
diff --git a/beescroll.lua b/beescroll.lua
index fcb9d3b..0732400 100644
--- a/beescroll.lua
+++ b/beescroll.lua
@@ -3,99 +3,19 @@ m.setTextScale(0.5)
local W,H = m.getSize()
-local cities = {}
-local fp = assert(fs.open("/cities.txt","r"))
-repeat
- local line = fp.readLine()
- table.insert(cities,line)
-until not line
-fp.close()
+local function read_lines(fname)
+ local out = {}
+ local fp = assert(fs.open(fname,"r"))
+ repeat
+ local line = fp.readLine()
+ table.insert(out, line)
+ until not line
+ fp.close()
+ return out
+end
-local verbs = {
- "recovered",
- "extinguished",
- "exsanguinated",
- "defenestrated",
- "obtained",
- "recovered",
- "mistreated",
- "relocated",
- "enraptured",
- "found",
- "seen",
- "heard",
- "devestated",
- "trusted",
- "distrusted",
- "promoted",
- "extended",
- "stretched",
- "squished",
- "moved",
- "rotated",
- "frozen",
- "unfrozen",
- "deployed",
- "redeployed",
- "shaken",
- "stirred",
- "discovered",
- "defeated",
- "thwarted",
- "confounded",
- "separated",
- "dissected",
- "submerged",
- "extracted",
- "zereod",
- "reset",
- "hidden",
- "concealed",
- "remade",
- "detected",
- "skolemized",
- "reinterpreted",
- "unfazed",
- "bifurcated",
- "sighted",
- "configured",
- "powdered",
- "melted",
- "solidified",
- "electrified",
- "ionized",
- "oxidized",
- "reacted",
- "propelled",
- "tetrated",
- "multiplied",
- "exponentiated",
- "prepared",
- "eradicated",
- "armored",
- "armoured",
- "vitrified",
- "corroded",
- "apified",
- "unmade",
- "darkened",
- "trepanated",
- "titrated",
- "fluoresced",
- "illuminated",
- "filtered",
- "refracted",
- "enchanted",
- "conjured",
- "crystalized",
- "vibrated",
- "resonated",
- "ythundered",
- "displaced",
- "forgotten",
- "accepted",
- "disputed",
-}
+local cities = read_lines("/cities.txt")
+local verbs = read_lines("/verbs.txt")
local function choice(list)
return list[math.random(#list)]
diff --git a/verbs.txt b/verbs.txt
new file mode 100644
index 0000000..59b2eb0
--- /dev/null
+++ b/verbs.txt
@@ -0,0 +1,135 @@
+recovered
+extinguished
+exsanguinated
+defenestrated
+obtained
+recovered
+mistreated
+relocated
+enraptured
+found
+seen
+heard
+devestated
+trusted
+distrusted
+promoted
+extended
+stretched
+squished
+moved
+rotated
+frozen
+unfrozen
+deployed
+redeployed
+shaken
+stirred
+discovered
+defeated
+thwarted
+confounded
+separated
+dissected
+submerged
+extracted
+zereod
+reset
+hidden
+concealed
+remade
+detected
+skolemized
+reinterpreted
+unfazed
+bifurcated
+sighted
+configured
+powdered
+melted
+solidified
+electrified
+ionized
+oxidized
+reacted
+propelled
+tetrated
+multiplied
+exponentiated
+prepared
+eradicated
+armored
+armoured
+vitrified
+corroded
+apified
+unmade
+darkened
+trepanated
+titrated
+fluoresced
+illuminated
+filtered
+refracted
+enchanted
+conjured
+crystalized
+vibrated
+resonated
+ythundered
+displaced
+forgotten
+accepted
+disputed
+malloced
+freed
+allocated
+deallocated
+programmed
+reprogrammed
+capitalized
+communized
+lowercased
+highlighted
+overshadowed
+modulated
+demodulated
+calibrated
+stilled
+dealt with
+alpha-reduced
+beta-reduced
+computed
+composed
+normalized
+normalised
+vectored
+type-cast
+appeased
+satisfied
+abated
+ablated
+boiled
+fried
+stellated
+greatened
+truncated
+rectified
+diffracted
+rarefacted
+reflected
+polished
+translated
+skewed
+sheared
+deformed
+polymerized
+loved
+hated
+inducted
+magnetized
+enumerated
+rounded
+composited
+primed
+