Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Nice. Yep, we wrote our own adventure games in BASIC as well. There were a couple problems with that, however. First we weren’t able to come up with a sophisticated parser like Infocom had. We ended up with basic “verb object” parsers, ala Scott Adams adventures. Second, we didn’t have many rooms as it was difficult to fit it all into memory and we didn’t have the sophisticated incremental loading that Infocom did with the Z-machine. Still, it worked.


Wrote a mini adventure game in BASIC for the ZX-81. Since it only had 1K of RAM, each room in the game had to be a separate program (max around 25 lines of code or so), and at the end of the room, depending on what actions you took, it asked you to wind the cassette tape to a specific location to load a new room. When I could finally afford the 16K RAM pack, I rewrote it as a single application. Couldn't believe how nice it was to have that much memory.


> it asked you to wind the cassette tape to a specific location to load a new room.

Wow, that's dedication!

I wrote my own adventure game for my Commodore PET, which had 8K of RAM. It worked well, but after three rooms of content, I ran out of RAM, so then I gave up.


Where there’s a will, there’s a way, I’d say. Amazing!


When I was around six years old, my older brothers convinced me computer games were written in paragraph form. I wrote a lot of games! Asteroids went something like this, "You fly around in a ship that is a triangle. When you shoot asteroids they break up into smaller asteroids."

My brothers got a lot of laughs out of those "programs".

Fast-forward 45 years and whose laughing now?! :)


If you had gotten a patent on vibe coding, you'd be laughing now.


Setting aside how it hopefully wouldn’t have been patentable anyway, 45 years ago means it would have expired in 2000.


I iterated on adventure games from junior high into high school, starting with a TRS-80 Model III.

I created parser recursion in BASIC (without a stack or a then non-existent GOSUB), using a string as the stack, including a character as a return destination (i.e. a flag for conditional GOTOs).

I was so proud of my parser!

A wrote many great unfinished games. I was more interested in better coding than completion, but the games still had a lot of color.

One Easter egg was if you typed “sh*t” the response was: “YOU HAVE DROPPED THE DUNG”.” You could do that anywhere, so a great way to detect you had walked in a circle in a maze or forest.

Later I used strings as a heap to define very simple 3D vector geometry.

(In early MATLAB, I prototyped some code with tree data structures implemented with an array, before they introduced their structures. The latter code shipped.)


Writing a terrible "verb object" parser in BASIC was certainly a rite of passage for many of us. I recall making more than one. I also recall my best one having rudimentary "verb object preposition subject" support, but that being about my limit at the time in BASIC.

But also I had access to TADS and early Inform (at home) and still wound up building a couple in BASIC (because school computer labs would have that available).


I did that in brainfuck once. I am a masochist apparently




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: