diff options
author | ubq323 <ubq323@ubq323.website> | 2024-04-02 03:31:31 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-04-02 03:31:31 +0100 |
commit | d8f475917f054adfcfc064b31e261516367c2d9b (patch) | |
tree | 20e467f2a1905aa03e49f8ca211b186079b3db85 | |
parent | 5fca57018a6b0df9337b1fb20d75ad2f502ff9eb (diff) |
launch beescroll
-rw-r--r-- | beescroll.dat | 1 | ||||
-rw-r--r-- | beescroll.lua | 104 | ||||
-rw-r--r-- | verbs.txt | 135 |
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 + |