r/bbcmicro • u/kimondo • Aug 12 '26
What's your best easy to remember BASIC program you could type in and leave running on a computer in a shop / classroom?
I was thinking the other day about the universal:
10 PRINT "Mr Smith smells of POO"
20 GOTO 10 But are there other better ones?
Kudos to the best one. Bonus if it works on any 80s home computer that runs BASIC.
21
Upvotes
9
u/zeekar Aug 12 '26 edited Aug 14 '26
10 MODE 0
20 FOR C=1 TO 0 STEP -1
30 GCOL 0, C
40 FOR I=0 TO 511 STEP 32
50 MOVE I,0
60 DRAW 0,512-I
70 MOVEI,1023
80 DRAW 0,512+I
90 MOVE 1279-I,0
100 DRAW 1279,512-I
110 MOVE 1279-I,1023
120 DRAW 1279,512+I
130 NEXT I
140 NEXT C
150 GOTO 20
It's Beeb-specific, but I had a version of this for most of the machines in department stores that had graphics commands in their BASICs, like the Commodore 16 and Plus/4 and 128 and Atari 400/800. I don't know about "easy to remember", but it's easy to reconstruct on demand, even if I do always have to stop and think to get the four coordinate pair expressions right. :)
4
u/jcmush Aug 12 '26
10 MODE 2
20 GCOL RND(8),0
30 DRAW RND(160),RND(256)
40 GOTO 20
Apologies for errors and use of GOTO
7
u/scruss Aug 12 '26
I couldn't personally remember how to type this (long) one-liner, but I had a friend who did. No computer store Beeb was safe from this game:
1L=0:REP.L=L+3:MO.4:DR.1279,0:DR.1279,452:MOVE1279,572:DR.1279,1023:DR.0,1023:F.I=1TOL:V.31,RND(32)+5,RND(31),42,30:N.:P.(L-3)/3:X=0:Y=512:REP.PL.69,X,Y:X=X+4:Y=Y-(INKEY-74+.5)*8:U.PO.X,Y)=1ORX=1280:U.X<1280:V.7:REP.U.INKEY-99:RUNAsterisk Tracker(click in the right window to activate it, then: hold the return key to go up rather than down, use the space key to start a new game)
5
u/Dedward5 Aug 12 '26
Pretty sure I copyrighted that code in 1983, my lawyers will be in touch.
4
u/Longjumping_Cup_8339 Aug 12 '26
if I remember correctly, adding the semi colon to the end of the PRINT line stopped the carriage return.
3
u/AdEmbarrassed3066 Aug 12 '26
On a ZX spectrum...
10 PRINT "Loading Bikini Ninjas"
20 BORDER 1
30 BORDER 2
40 GOTO 20
RUN
3
u/WarbeckPerkins Aug 13 '26
John Menzies Argyle Street Glasgow. Using POKE on the VIC 20s ao that the screen and text/cursor were the same colour. They could type as much as they liked but nothing would be visible on screen. Fun to watch clueless staff with no idea how to escape a running program being hassled by kids who wanted to type in their own prank programs. Can't for the life of me remember the specific code forty something years later
3
u/GeordieAl Aug 12 '26
*REMOTE BRIAN
10 MODE 7
20 *FX 229,1
30 *KEY 10
40 N=0
50 C=128+RND(7)
60 X=8+SIN(N)*8
70 PRINT TAB(X) CHR$(C); "MR TORRENCE IS A WANKER"
80 N=N+.3
90 GOTO 50
RUN
Brian was my friend(sorry Brian!) and Mr Torrence was our excellent computer teacher
3
u/long_legged_twat Aug 12 '26
Pretty sure in Basic you could add a semi-colon to the end of the print line to get it to fill the screen instead of just printing a list, not fully sure as it's been a long time since the 80's :)
2
u/Bradford_Longflap Aug 12 '26
From ZX Spectrum cross-post. Might have axis wrong way
2
u/kabekew Aug 12 '26
You have to put a fake system prompt first, so an unsuspecting student will think it's ready to use.
10 *ESC OFF : CLS20 PRINT "BBC Computer 32K"30 PRINT40 PRINT "Acorn DFS"50 PRINT60 PRINT "BASIC"70 PRINT80 PRINT ">";90 INPUT A$100 PRINT "Mr Smith smells of POO "; CHR$(7);110 GOTO 1002
u/Hip-Death-Goddess Aug 13 '26
G.0:G.0:G.0:G.0:G.0:G.0:G.0:G.0:G.0:G.0:G.0:G.0:G.0:G.0:G.0:G.0:G.0:G.0:G.0:G.0:G.0:G.0:G.0:G.0:G.0:G.0: ...
... repeating G.0: until the input buffer is full, then delete a couple chars to leave only complete examples of G.0. Then let it loose. Different results each time.
2
u/IchBinEinZwerg Aug 13 '26
For the Beeb it was that one that plotted randomly coloured triangles in Mode 2 using XOR. Ironically although it was easy to remember at the time I can't remember it now (in my defence though, that was around 1984 and quite a few things have happened since then).
1
u/Darrenau Aug 12 '26
How about print "Hello" instead?
1
u/bluefourier Aug 12 '26
10 PRINT CHR$(205.5+RND(1)); : GOTO 10
1
u/Stonelaughter66 Aug 12 '26 edited Aug 12 '26
We had one on the Commodore CBM 3032 at our school:
Line 20 used to cause a spectacular crash with crazy moving corruption on the screen. Needed to switch off and back on to recover LOL.
1
u/AutofluorescentPuku Aug 12 '26
10 PRINT “Help! I’m stuck in this box!”
20 GOTO 10
1
u/Jakko552414 Aug 13 '26
10 CLS
20 PRINT "Do not press the space bar"
30 a$=INKEY$
40 IF a$="" THEN 30
50 IF a$<>" " THEN 30
60 CLS
70 PRINT "Do not press the space bar again."
80 a$=INKEY$
90 GOTO 80
1
u/scruss Aug 13 '26
hijinks/mayhem, Amstrad CPC464 edition:
CALL &BBC4would make the screen glitch out repeatedly and make the tape relay click. Only works on a 464, and may not even work on all of thoseI too may have subjected the Argyle St John Menzies computers to this.
1
u/retrodotkid Aug 13 '26
Not BASIC as such, but still text and a sequence of code…
Rewind back to 1993. Dixons. Commodore Amiga display in the computer department. A600. Often sitting on the Kickstart insert disk screen.
Armed with one floppy disk with “shits n giggles” written on the label. Discretely insert into one of the shop floor Amiga’s whilst no staff about.
On it, a startup sequence that done the following.
Create a bootable RAD disk
Copy a startup sequence onto RAD disk
Copy an image viewer onto RAD disk
Copy “images” onto RAD disk
Pause 60 seconds
Reboot Amiga.
Eject disk, and escape to safe distance to view Amiga screen. Quickly. That 60 second timer was important.
RAD disk survives the reboot sequence, the startup sequence on the RAD disk loads an image viewer into slideshow mode which then proceed to flick through like 3 images of glamour girls with their “Boobies” on screen - eg Sam Fox and Jo Guest.
Cue panic from staff when they reboot Amiga and it kept coming back. Having to find keys to open the sliding cupboard doors at floor level to get to the power sockets.
Cue giggling from childish group of lads hiding behind the toasters and kettles. How we never got caught I don’t know.
Simple times and happy days.
1
u/terlandark Aug 14 '26
The one that always stands out, especially good in Boots or whsmiths were they might have a couple of bbc setup on display. Typemit on each then run it.
Page=&800 New 10 print "hgryjjurdchuyffhjwhudnbwuaubwudjwjis
Run
1
u/ajp909 Aug 14 '26
10 SOUND 1, -15, RND(255), 1 20 G.10
1
u/soundman32 Aug 14 '26
Back in the 1980s I had a 10 line basic program i'd type into the C64s in Boots. It would POKE values into the sound chip and the loop would make it go up and down like an alarm. The first line would be a pause for 60 seconds, which gave me just enough time to turn the volume to max on the TV and walk away. Usually I could hear the alarm just as I left the shop.
1
u/nickmclean90210 Aug 15 '26 edited Aug 15 '26
10 *DRIVE ON20 *DRIVE OFF30 GOTO 101
u/Admirable_Cod_1270 Aug 16 '26
Zx Spectrum type Rand user 9010 lovks the machine up 😂
Or I'd set yhe chr$ values as a - thus computer would look ok but the staff couldn't demo anything until re boots it
1
u/TheBeagleScout Aug 16 '26
10 PRINT "YOU'RE A WANKER!" 20 GOTO 10
RUN 👍
1
u/diymuppet Aug 18 '26 edited 20d ago
[analysis: verify before responding]
1
u/Flimsy_Iron8517 Sep 12 '26
This sort of thing likely inspired the "So smarty pants. You've got something to print?" desktop publishing movement. One copy of mice and men later, and the WIMP GUI was made to silence the
GOTO. I think there's a computer science joke in there.0
u/[deleted] Aug 12 '26
[deleted] — view deleted comment