kthejoker / basic-computer-games

An updated version of the classic "Basic Computer Games" book, with well-written examples in a variety of common programming languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What are we doing?

We're updating the first million selling computer book, BASIC Computer Games, for 2021!

Where can we discuss it?

Please see the discussion here for a worklog and conversation around this project.

Project structure

I have moved all the original BASIC source code into a folder for each project in the original book (first volume). Note that Lyle Kopnicky has generously normalized all the code (thanks Lyle!) to run against Vintage Basic circa 2009:

I've included all the games here for your tinkering pleasure. I've tested and tweaked each one of them to make sure they'll run with Vintage BASIC, though you may see a few oddities. That's part of the fun of playing with BASIC: it never works quite the same on two machines. The games will play better if you keep CAPS LOCK on, as they were designed to be used with capital-letter input.

Each project has subfolders corresponding to the languages we'd like to see the games ported to:

  • C#
  • Java
  • JavaScript
  • Python
  • Ruby
  • VB.NET

Project goals

Feel free to begin converting these classic games into the above list of modern, memory safe languages. But first, a few guidelines:

  • These are very old games. They date from the mid-70s so they're not exactly examples of what kids (or anyone, really?) would be playing these days. Consider them more like classic programming exercises to teach programming. We're paying it forward by converting them into modern languages, so the next generation can learn from the programs in this classic book -- and compare implementations across common modern languages.

  • Stay true to the original program. These are mostly unsophisticated, simple command line / console games, so we should strive to replicate the command line / console output and behavior illustrated in the original book. See the README in the project folder for links to the original scanned source input and output. Avoid the impulse to add features; keep it simple.

  • Please DO update for modern coding conventions. Support uppercase and lowercase. Use structured programming. Use subroutines. Try to be an example of good, modern coding practices!

  • Don't get too fancy. Definitely use the most recent versions and features of the target language, but also try to keep the code samples simple and explainable -- the goal is to teach programming in the target language, not necessarily demonstrate the cleverest one-line tricks.

Have fun!

Thank you for taking part in this project to update a classic programming book -- maybe the most influential programming book in computing history -- for 2021!

About

An updated version of the classic "Basic Computer Games" book, with well-written examples in a variety of common programming languages

License:The Unlicense


Languages

Language:VBA 44.3%Language:JavaScript 14.1%Language:Java 14.0%Language:Python 13.1%Language:C# 10.5%Language:Ruby 1.9%Language:Raku 1.2%Language:HTML 0.5%Language:Perl 0.3%