David Ahl’s Basic Computer Games Ported to C

David Ahl’s Basic Computer Games Ported to C

These haven’t been tested, validated, debugged, or verified!

Use at your own risk:

  • 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?

  • This repository contains a ‘C’ port of the classic GW-BASIC games from David Ahl’s “BASIC Computer Games” and “More BASIC Computer Games” originally published by Creative Computing.

    Juicy beef burger with melty cheese under a bright aloha neon sign. Perfect for food lovers.
    Photo: Ali Dashti / Pexels
  • The original games were written in GW-BASIC and have been ported over to ‘C’, ensuring they compile and run on a variety of platforms including Linux (GCC), Windows (MSVC), and FreeDOS (Open Watcom).

  • When I get time, I will finish this project, otherwise fork it and finish it yourself.

    AdvertisementDon't Outlive Your Benefits — Long-Term Care insurance with unlimited LTC funds for as long as you live. Call 1-800-317-0625
  • Make sure CAPS LOCK IS ON!

    AdvertisementDon't Outlive Your Benefits — Long-Term Care insurance with unlimited LTC funds for as long as you live. Call 1-800-317-0625

Background & History

Build Instructions

A large dump truck unloading at a construction site under a clear blue sky.
Photo: Mark Twineham / Pexels

The repository includes build scripts for multiple environments:

AdvertisementDon't Outlive Your Benefits — Long-Term Care insurance with unlimited LTC funds for as long as you live. Call 1-800-317-0625
  • Linux (GCC): Run ./build_lx.sh
  • Windows 11 (MSVC): Run build_win.bat
  • FreeDOS (Watcom): Run build_fd.bat

The source files for the C ports are located in the src/ directory. The original GW-BASIC code is retained in the .bas files in the root directory and as comments directly inside the ported .c source files for easy reference.

License

AdvertisementDon't Outlive Your Benefits — Long-Term Care insurance with unlimited LTC funds for as long as you live. Call 1-800-317-0625

This project is licensed under the MIT License – see the LICENSE file for details.

Read More

Join the conversation

Your email address will not be published. Be respectful — keep it constructive.

AdvertisementDon't Outlive Your Benefits — Long-Term Care insurance with unlimited LTC funds for as long as you live. Call 1-800-317-0625
AdvertisementDon't Outlive Your Benefits — Long-Term Care insurance with unlimited LTC funds for as long as you live. Call 1-800-317-0625