David Ahl's Basic Computer Games Ported to C

30 pointsposted 3 hours ago
by theanonymousone

11 Comments

vessenes

a few seconds ago

Boy that is some ugly C89. Like truly terrible. Lots of ways to ‘port’ something like this, but I think if you miss the instructional / simplicity angle, you have not created a good translation.

PaulHoule

2 hours ago

The version of that book I remember came out long before there was GW-BASIC, in fact, it came out just before there were microcomputers and you might type them into a PDP-8/10/11. I bought a copy at the DEC store in the Mall of New Hampshire circa 1980.

Some of the games used features that were not supported on most microcomputer BASICs but you could type most of them into a TRS-80 or Apple ][ without changes and you could run all of them with minor modifications. Fun times!

sbuttgereit

2 hours ago

Yep. Ahl's book was first released in 1973... about 10 years before GW-BASIC.

CrociDB

25 minutes ago

> "These haven't been tested, validated, debugged, or verified!"

I really don't understand what the point of it is, then. It's not anymore "I put a lot of effort into something because I have the knowledge, experience and time to do so, hope you enjoy", it's like "I paid AI tokens to to that. Everyone could've done, but I paid with my own pocket. And it's untested.". That's it?

> "Yes, I used Google Anti-Gravity to convert the programs from GW-BASIC to 'C', but what a better learning tool than to debug a program?"

Debugging a program is an excellent learning tool. It's just not better than another learning tool: coding the program yourself. :)

ThrowawayR2

an hour ago

> "These haven't been tested, validated, debugged, or verified! ... I used Google Anti-Gravity to convert the programs from GW-BASIC to 'C'"

Doesn't seem like there's anything of interest here. It's just tossing existing code into a LLM.

jhack

35 minutes ago

Which then gets tossed into a compiler and who knows what kind of code that thing spits out. That's why I only support projects written in assembly by real programmers.

iamflimflam1

35 minutes ago

Shame really as it would have been relatively straightforward forward to build in an agent loop that actually tests the games.

HocusLocus

an hour ago

I liked maze games with sprites and CHASE.bas (like later PAC-MAN) was a first glimpse of coded transactional survival, though you usually didn't survive long. Great terminal game as was GORILLAS.bas. For printers/fanfold paper BANNER.bas was a functional matrix font generator. They were the days of SNOOPY calendars on various RPG/COBOL/DartmothBASIC/FortranIV/77 platforms.

This treasured Volume and the whole series https://archive.org/details/bestofcreativeco00ahld was where a lot or it came together. Fun book and a Merry Prankster vibe from the Furry Freak Bros cover art, fun times for 13 year olds!