Wargames Simulator written in BASIC by Andy Glenn. It Simulates the IMSAI 8080, WOPR and other Computer Systems from the Wargames Movie, 1983, featuring Matthew Broderick and Ally Sheedy.
This is a Wargames Simulator written in BASIC. It has been developed using BASIC-80 on CP/M, but could be easily ported to other platforms. To save space in memory, the help pages use text files which are included in the project.
If you are intending to run this on a CP/M machine, you will need a SYSGEN 64 image/boot disk.
You are free to use and modify the code for your own purposes, but must credit the author, Andy Glenn, under all circumstances.
This code is fully functional, but there are some additional features that I plan to include, as follows:
- Zero (0) Players option in Tic-Tac-Toe game
- Completed tasks/status/score page at end of "game"
- AT modem connections to BBS systems (for some/all of the "dummy" systems)
- Speech synth output via RS-232 (ASCII)
NOTE: The code will run using a BASIC-80 interpreter (on a SYSGEN 64 image/boot disk), but it may not be possible to compile and link the code as it stands because of the 64KB TPA Memory limit of CP/M. To overcome this limitation of CP/M and to enable the code to be compiled and linked, I am considering breaking the code up into a series of smaller programs and using a data file to share variables between them.
If you want to see a demo of the code in action, running on an IMSAI 8080esp (albeit, a slightly earlier version of the code), please watch these Youtube videos: https://youtu.be/GsTtD4rpM6E and https://youtu.be/U8yCnbcdOrg
Useful Links:
-
Z80PACK written by Udo Munk: https://www.z80cpu.eu/mirrors/www.unix4fun.org/z80pack/index.html
-
Replica IMSAI 8080 (ESP32) Kit: https://thehighnibble.com
-
The High Nibble (Youtube): https://www.youtube.com/c/TheHighNibble
-
Udo Munk (Youtube): https://www.youtube.com/channel/UCwOfdlzktTTDuFyFODbA3yA
-
CP/M Software Archives: http://www.classiccmp.org/cpmarchives/
Update 25 June 2022: The plan is to re-write the WOPR (and other remote systems) code in C so that it can be easily compiled on various platforms. The intention is to make it client/server so that when the DIALER (running on the IMSAI 8080 or other CP/M machine) connects to a system, e.g. WOPR, Pan AM etc. these will actually be hosted on another machine, ideally Linux, each with a unique TCP listener port; assuming I can get BASIC-80 to open the uc1 port on the IMSAI 8080, so AT commands can be sent to the WiFi modem. If you are interested in working on the development of this project in C for the various systems from the Wargames movie (School Computer, Pan AM, Bank, WOPR - and maybe RIPLEY), please get in touch by logging a ticket.