Miscellanea

Recursion

Examples of recursion use in nuBASIC: Fact.bas shows how to calculate the factorial of an integer number.

Guess.bas

This simple game challenges the user to guess a randomly selected number within the 1-10 range, without offering the usual hints of "higher"/"lower". It is written using QBasic-like dialect syntax supported by nuBASIC.

See also http://en.wikipedia.org/wiki/QBasic

PingPong.bas

This code is a simple "Solitaire" Ping Pong demo.

Solitaire

Parabola.bas

A simple program which shows how to draw a math curve

http://en.wikipedia.org/wiki/Parabola

Parabola

Readfile.bas

This simple example shows how to read a text file and display its content on the screen.

Draw image samples

These examples show how to draw bitmap read from file on the screen.

Cartoon shows how to make a simple animation.

Cartoon

Code.bas

The following program is an example of the ALGOL-like BASIC dialect supported by nuBASIC.

See also http://en.wikipedia.org/wiki/Turbo_Basic

Math.bas

This program is an example of Eval function use.

Plane.bas

This program is another example which shows how to draw bitmaps for creating simple 2D game graphics.