US State Capital Quiz - CPM 2.2 - Written in C

General discussions related to the Altair 8800 Clone

US State Capital Quiz - CPM 2.2 - Written in C

Postby bkholman » November 23rd, 2015, 11:35 pm

I just got my AltairClone and thought it would be fun to write a program for it. The program will present the US States in a random order and ask the user to supply the correct capital. The program keeps score of the number of correct answers and allows unlimited retries per state. The program uses the SoundEx algorithm to let the user know if they likely have the correct answer but it is misspelled. The program will adapted to various screen sizes of the VT100 compatible terminal.

Download Link:
=============
http://www.brianholman.com/dl/Altair/So ... captqz.dsk
http://www.brianholman.com/dl/Altair/So ... alQuiz.zip (includes source code in C)

Technical Details:
==================
-captqz.dsk is 330k CPM 2.2 floppy image that will autolaunch captqz.com
-The program was written in C and compiled in Linux for CPM on the Intel 8080
using the Amsterdam Compiler Kit (http://tack.sourceforge.net)
-The program has been tested on the SIMH Altair 8800 simulator
(http://schorn.ch/altair.html)
-The program has also been tested on the Altair Clone Hardware
-The program should also work on z80-based CPM 2.2 systems

Requirements:
=============
-The program is 41029 bytes. I have only tested it on machines with 64k RAM
-The program requires a VT100 compatible terminal

Third Party Attribution:
========================
-The program uses the SoundEx function from Creativyst, Inc.
(http://www.creativeyst.com) for checking for misspelled state capitals.
The source included in this distribution contains their required copyright
notice.
-The VT100 terminal support is based on a library by Christoph Lohmann
(http://git.r-36.net/libvt100/). I removed the Linux specific code and
added support for bold, underline, blink, and reverse text. My version
is included in this distribution.
bkholman
 
Posts: 2
Joined: November 20th, 2015, 3:24 pm

Re: US State Capital Quiz - CPM 2.2 - Written in C

Postby AltairClone » November 29th, 2015, 2:22 pm

Just had a chance to download and boot this disk image. Good job!

Mike
AltairClone
Site Admin
 
Posts: 632
Joined: April 5th, 2013, 10:55 am


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 12 guests

cron