Coder Social home page Coder Social logo

einshous / basic-computer-games Goto Github PK

View Code? Open in Web Editor NEW

This project forked from coding-horror/basic-computer-games

1.0 0.0 0.0 1.02 MB

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

License: The Unlicense

VBA 20.53% C# 10.83% Python 18.49% HTML 0.72% JavaScript 26.79% Perl 0.40% Java 18.03% Ruby 2.30% Pascal 1.30% Jupyter Notebook 0.61%

basic-computer-games's Introduction

What are we doing?

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

[Read book] (https://annarchive.com/files/Basic_Computer_Games_Microcomputer_Edition.pdf)

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. This is based on the February 2021 TIOBE index of top languages that are memory safe and general purpose scripting language per this post:

  • Java
  • Python
  • C#
  • VB.NET
  • JavaScript
  • Ruby
  • Delphi / Object Pascal
  • Perl

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!

  • Use lots of comments to explain what is going on. Comment liberally! If there were clever tricks in the original code, decompose those tricks into simpler (even if more verbose) code, and use comments to explain what's happening and why.

  • 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 -- one of the most influential programming books in computing history -- for 2021!

basic-computer-games's People

Contributors

coding-horror avatar journich avatar nanochess avatar tsmaster avatar danielpiron avatar qequ avatar jamiemccarthy avatar epvanhouten avatar clamey avatar rjnienaber avatar infovore avatar olliehcrook avatar gcarreno avatar jkboyce avatar nezumironin avatar nahidmondol avatar jamescurran avatar drew-cooper avatar jeffjetton avatar marcheiligers avatar marvin826 avatar ideadapt avatar swofty-developments avatar qeubd-bsjso avatar lemonad avatar jefflewis-v avatar jones-adam avatar qursch avatar vashli300 avatar quamrana avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.