HN
Today

David Ahl's Basic Computer Games Ported to C

This project ports David Ahl's classic BASIC Computer Games to C using an AI tool, explicitly noting the code is untested and unverified. While it taps into a rich vein of retro-computing nostalgia, the Hacker News community largely criticizes the approach, deeming the AI-generated, untested code as 'slop' with little educational or practical value. The discussion highlights a growing skepticism toward raw, uncurated AI output in programming.

39
Score
17
Comments
#3
Highest Rank
4h
on Front Page
First Seen
Jun 21, 1:00 PM
Last Seen
Jun 21, 4:00 PM
Rank Over Time
3459

The Lowdown

A new GitHub repository by proteanthread offers C ports of the beloved games from David Ahl's "BASIC Computer Games" and "More BASIC Computer Games." Notably, the author transparently states these conversions were performed using an AI tool, "Google Anti-Gravity," and explicitly warns that the resulting code is untested, unvalidated, debugged, and unverified, positioning it as a learning tool for debugging.

  • Original Source: Games derived from David Ahl's iconic books, originally written in GW-BASIC.
  • Conversion Method: Utilized "Google Anti-Gravity" for the GW-BASIC to C translation.
  • Current State: The project explicitly warns of its untested and unverified nature, encouraging users to debug or fork it.
  • Learning Opportunity: The author suggests the debugging process itself serves as a valuable learning experience.
  • Compatibility: The C ports are designed to compile and run across multiple platforms, including Linux (GCC), Windows (MSVC), and FreeDOS (Open Watcom).
  • Historical Context: The repository provides links to the original book on Archive.org, its Wikipedia page, and a YouTube documentary for historical background.
  • Code Reference: Original GW-BASIC code is included as .bas files and as comments within the .c source files.
  • Licensing: The project is open-sourced under the MIT License.

This project presents a curious blend of retro nostalgia and modern AI tooling, offering a collection of classic games in C while openly acknowledging its experimental, machine-generated, and unpolished state. It implicitly challenges the community to contribute to its refinement, or simply to learn from its imperfections.

The Gossip

Back to BASICs: A Wave of Nostalgia

Many commentators fondly recall their early programming days centered around David Ahl's books and the classic BASIC games. They shared memories of typing in code on microcomputers like the TRS-80 or Apple ][, and fiddling with games like GORILLA.BAS and NIBBLES.BAS. The discussion touched upon the different editions of Ahl's book and how foundational these games were to their initial understanding of programming concepts, evoking a strong sense of personal history and connection to retro computing.

Critiquing C Conversions and AI Code

A significant portion of the discussion revolved around intense skepticism and outright criticism regarding the use of AI for conversion and the explicit 'untested' disclaimer. Many users dismissed the project as 'AI slop' or 'bad autotranslated' code, pointing out that an unvalidated, machine-generated port, especially one containing 'ugly C89' and 'goto' statements, misses the point of meaningful programming or learning. Critics questioned the educational value of debugging AI output versus writing code from scratch and debated whether such an endeavor, lacking human refinement, serves any real purpose beyond a token-costly exercise.