Giter Site home page Giter Site logo

fortran-gaming / lunar-lander-1969 Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 1.0 4.08 MB

Dr. Jim Storer's 1969 Lunar Lander program in ANSI BASIC and modern Fortran 2008

License: MIT License

Fortran 22.57% Python 3.97% CMake 2.55% BASIC 70.91%
basic-programming-language modern-fortran fortran2008 lunar-lander

lunar-lander-1969's Introduction

Lunar Lander 1969: BASIC and Fortran

Actions Status

This game is presented in:

  • BASIC lunar.bas adapted from the 1969 source code, compatible with modern ANSI BASIC interpreters.
  • Fortran lunar.f90 by Michael Hirsch is also given.

Build

Any Fortran 2008 compliant compiler should work.

cmake -B build
cmake --build build

Usage

The program defaults to stdin from user.

./build/lunar-lander

Options:

  • -d allows file redirection for testing and optimization
  • -f specifies initial fuel weight

To mimic the 1969 results

lunar-lander -f 16000 -d < fail.asc

lunar-lander -f 16000 -d < ok.asc

The final output line is formatted for automatic parsing.

BASIC

For reference the 1973 BASIC program from David Ahl may be run with many ANSI BASIC interpreters like:

bwbasic lunar.bas

Notes

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.