This repository preserves and provides editable electronic copies of the BASIC source code listings from the book "Exploring Artificial Intelligence on Your IBM PC" by Tim Hartnell.
- Title: Exploring Artificial Intelligence on Your IBM PC
- Author: Tim Hartnell
- Publisher: Bantam Books
- Copyright: 1986
- ISBN: 0553342878
All source code is provided for educational and historical preservation purposes.
Want to run the programs right away? We've included a ready-to-use runtime environment with PC-BASIC!
Linux/macOS:
Windows:
Linux/macOS:
Windows:
The launcher will present an interactive menu where you can select which program to run!
For detailed information about the runtime environment, see runtime/README.md.
- TICTAC.BAS - Tic-Tac-Toe game with learning capability
- SYLLOGY.BAS - Syllogistic logic processor
- SNICKERS.BAS - Pattern matching demonstration
- BLOCKWORLD.BAS - Natural language interface for block world
- DOCTOR.BAS - ELIZA-style conversation program
- TRANSLATE.BAS - Simple language translation system
- HANSHAN.BAS - Chinese poetry generator
- SPURT.BAS - Simple expert system (creature identification)
- X-SPURT.BAS - Generic expert system framework
- CHIP-CHOICE.BAS - Microprocessor chip identification expert system
- SELFLEARN.BAS - Two-outcome self-learning system
- MULTI-SELF-LEARN.BAS - Multiple-outcome self-learning system
These programs were written for IBM BASICA/GW-BASIC (circa 1984) and feature:
- IBM PC-specific commands: COLOR, SOUND, KEY OFF, WIDTH
- 40-column display mode support
- Line-numbered BASIC syntax
This project includes PC-BASIC, a free, open-source interpreter with bug-for-bug GW-BASIC compatibility. See the Quick Start section above for easy setup!
If you prefer other BASIC interpreters:
-
DOSBox + GW-BASIC: Authentic 1980s experience
- DOSBox: https://www.dosbox.com/ (GPL v2)
- GW-BASIC: Now open source! https://github.com/microsoft/GW-BASIC (MIT License)
-
QB64: Modern BASIC compiler
- Website: https://qb64.com/ (MIT License)
- May require minor syntax adjustments
-
FreeBASIC: Native BASIC compiler
- Website: https://www.freebasic.net/ (GPL/LGPL)
- Supports QB-compatible syntax
"Exploring Artificial Intelligence on Your IBM PC" introduces fundamental AI concepts through practical BASIC programming examples. Topics covered include:
- Machine learning and pattern recognition
- Expert systems and knowledge representation
- Natural language processing
- Self-learning algorithms
- Logic and reasoning systems
- Creative programming (poetry generation)
The book was written during the early days of personal computing and represents an important historical snapshot of accessible AI programming education.
The source code is provided for educational and historical preservation purposes. Please respect the original copyright of the book and its contents.
If you have corrections, improvements, or additional programs from the book, please feel free to contribute. When submitting changes:
- Preserve the original code structure and style as much as possible
- Document any modifications for compatibility with modern systems
- Maintain the historical accuracy of the listings
Special thanks to Tim Hartnell for writing this foundational text on AI programming, and to all those working to preserve vintage computing knowledge and software.
.png)
