Skip to content

jps28PCT/BASIC_Examples

Repository files navigation

BASIC Examples

These are some simple examples of the BASIC programming language written for the Tandy Color Computer 3. However, all of the text programs should work in any BASIC interpreter!

I made these as a docent at the Isett Heritage Museum in Huntingdon, PA as quick programs guests could enter to try out the CoCo 3 while on a tour!

01: HELLO WORLD

Everyone's first program!
Simply prints HELLO, WORLD! to screen.

02: HELLO WORLD INFINITE LOOP

Using a GOTO line, this program infinitely prints out HELLO, WORLD! to screen.
Tip: If using a Color COmputer 3, press the [ESC] key to terminate the program.

03: HELLO WORLD FOR LOOP

Using a FOR loop, this program prints out HELLO, WORLD! to screen ten times.

04: TEXT INPUT WELCOME

Using the INPUT function, this program welcomes the user to the field of programming by name!

05: MULTIPLICATION TABLES

This program creates a game to practice multiplication tables.
It introduces concepts like if/them statements, math operators, and integer inputs.

06: NUMBER GUESSING GAME

This program expands on the concepts learned in the previous program to create a number guessing game!

07: MAD LIB

Using text inputs, this program creates a playable mad lib!

08: EXACT AGE CALCULATOR

This is the most advanced of these sample programs.
This program creates a calculator that finds your exact age down to the day! It accounts for leap years.

09: GRAPHICS - RANDOM LINES

This is the first of the programs to run exclusively on the Tandy Color Computer 3.
Using the graphics functions exclusive to this machine, the user creates a program that generates lines of random length and direction in random colors.

10: GRAPHICS: ETCH-A-SKETCH

Like the previous graphic program, this code only can run on the Tandy Color Computer 3.
Using the graphics functions, this program creates an Etch-A-Sketch that draws using the cursor keys!

About

This is some simple examples of the BASIC programming language written for the Tandy Color Computer 3. However, all of the text programs should work in any BASIC interpreter!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages