summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-04-02 02:48:42 +0100
committerubq323 <ubq323@ubq323.website>2024-04-02 02:48:42 +0100
commitff712cedfc79ae835672f1e26e229e5fa60d0aae (patch)
tree1a825495231d3513e214da22ae223381fbc4401a
parentf1b01807622f07f122307f78916070674a21387f (diff)
launch beescroll
-rw-r--r--beescroll.dat1
-rw-r--r--beescroll.lua36
-rw-r--r--cities.txt128
3 files changed, 162 insertions, 3 deletions
diff --git a/beescroll.dat b/beescroll.dat
new file mode 100644
index 0000000..932320e
--- /dev/null
+++ b/beescroll.dat
@@ -0,0 +1 @@
+file cities.txt beescroll.lua
diff --git a/beescroll.lua b/beescroll.lua
index 3384c58..fe0ac86 100644
--- a/beescroll.lua
+++ b/beescroll.lua
@@ -2,6 +2,14 @@ local m = peripheral.find"monitor"
local W,H = m.getSize()
+local cities = {}
+local fp = assert(fs.open("/cities.txt","r"))
+repeat
+ local line = fp.readLine()
+ table.isert(cities,line)
+until not line
+fp.close()
+
local verbs = {
"recovered",
"extinguished",
@@ -30,14 +38,36 @@ local verbs = {
"redeployed",
"shaken",
"stirred",
+ "discovered",
+ "defeated",
+ "thwarted",
+ "confounded",
+ "separated",
+ "dissected",
+ "submerged",
+ "extracted",
+ "zereod",
+ "reset",
+ "hidden",
+ "concealed",
+ "remade",
+ "detected",
+ "skolemized",
+ "reinterpreted",
+ "unfazed",
}
-
+
+local function choice(list)
+ return list[math.random(#list)]
+end
while true do
- local x = math.random(0,999999)
+ local x = math.random(0,99999)
m.scroll(1)
m.setCursorPos(1,H)
- m.write(string.format("%6d",x))
+ m.write(("%5d bees have been %s in %s."):format(
+ x, choice(verbs), choice(cities)
+ )
os.sleep(1)
end
diff --git a/cities.txt b/cities.txt
new file mode 100644
index 0000000..d24261f
--- /dev/null
+++ b/cities.txt
@@ -0,0 +1,128 @@
+New York, NY
+Los Angeles, CA
+Chicago, IL
+Miami, FL
+Houston, TX
+Dallas, TX
+Philadelphia, PA
+Atlanta, GA
+Washington, DC
+Boston, MA
+Phoenix, AZ
+Detroit, MI
+Seattle, WA
+San Francisco, CA
+San Diego, CA
+Minneapolis, MN
+Tampa, FL
+Brooklyn, NY
+Denver, CO
+Queens, NY
+Riverside, CA
+Las Vegas, NV
+Baltimore, MD
+St. Louis, MO
+Portland, OR
+San Antonio, TX
+Sacramento, CA
+Austin, TX
+Orlando, FL
+San Juan, PR
+San Jose, CA
+Pittsburgh, PA
+Indianapolis, IN
+Manhattan, NY
+Cincinnati, OH
+Kansas City, MO
+Cleveland, OH
+Columbus, OH
+Bronx, NY
+Virginia Beach, VA
+Charlotte, NC
+Milwaukee, WI
+Providence, RI
+Jacksonville, FL
+Nashville, TN
+Salt Lake City, UT
+Raleigh, NC
+Richmond, VA
+Memphis, TN
+Oklahoma City, OK
+Hartford, CT
+Louisville, KY
+Buffalo, NY
+New Orleans, LA
+Fort Worth, TX
+Bridgeport, CT
+Tucson, AZ
+El Paso, TX
+Omaha, NE
+McAllen, TX
+Birmingham, AL
+Albuquerque, NM
+Tulsa, OK
+Fresno, CA
+Charleston, SC
+Rochester, NY
+Dayton, OH
+Cape Coral, FL
+Mission Viejo, CA
+Colorado Springs, CO
+Baton Rouge, LA
+Allentown, PA
+Ogden, UT
+Provo, UT
+Knoxville, TN
+Grand Rapids, MI
+Columbia, SC
+Albany, NY
+Bakersfield, CA
+New Haven, CT
+Des Moines, IA
+Akron, OH
+Palm Bay, FL
+Concord, CA
+Wichita, KS
+Mesa, AZ
+Harrisburg, PA
+Staten Island, NY
+Toledo, OH
+Worcester, MA
+Long Beach, CA
+Port St. Lucie, FL
+Little Rock, AR
+Reno, NV
+Spokane, WA
+Madison, WI
+Boise, ID
+Bonita Springs, FL
+Denton, TX
+Oakland, CA
+Springfield, MA
+Augusta, GA
+Kissimmee, FL
+Winston-Salem, NC
+Stockton, CA
+Syracuse, NY
+Chattanooga, TN
+Lancaster, PA
+Greenville, SC
+Durham, NC
+Pensacola, FL
+Fayetteville, AR
+Arlington, TX
+Aurora, CO
+Oxnard, CA
+Indio, CA
+Scranton, PA
+Victorville, CA
+Trenton, NJ
+Modesto, CA
+Huntsville, AL
+Honolulu, HI
+Greensboro, NC
+Anaheim, CA
+Corpus Christi, TX
+Fort Wayne, IN
+Fort Collins, CO
+Jackson, MS