HeadlinesBriefing favicon HeadlinesBriefing.com

C Rebuild of David Ahl’s Classic BASIC Games on GitHub

Hacker News •
×

GitHub repo proteanthread/bcg offers a C reimplementation of David Ahl’s classic GW‑BASIC games from “BASIC Computer Games.” The author used Google Anti‑Gravity to translate the code, leaving the original .bas files for reference. The project targets Linux (GCC), Windows (MSVC), and Free DOS (Open Watcom) including build scripts for each platform and a MIT license for developers.

These games first appeared in Creative Computing magazines in the 1970s and 80s, serving as entry‑level programming lessons. Re‑porting them to modern C demonstrates how legacy code can survive across operating systems, offering a hands‑on study for students learning cross‑platform development without modifying the original logic, preserving the educational intent and keeping source files in sync.

The repository ships with shell scripts: ./build_lx.sh for Linux, build_win.bat for Windows, and build_fd.bat for Free DOS. Source files live in src/, while the original .bas files remain in the root, annotated inside the C code for quick comparison. The MIT license permits free modification for anyone.

By preserving the original source alongside the C ports, the project creates a living archive that lets developers experiment with legacy logic on contemporary toolchains. This resource proves invaluable for educators and hobbyists seeking a practical bridge between early computing concepts and modern development practices.