Shooter
A targeting experiment using fuzzy rules and shot feedback.
Borland C, VGA 640×480, int 33h mouse
Author’s notes
Amir Husain · software I wrote
A gun-laying problem solved with fuzzy logic. The first click on the grid marks a square as the target, and every click after that fires a round. Each round feeds back into the solution, so the gun walks itself onto the square, and when one lands on it the screen says BOOM. The marker is the aim point, the wedge on the left is the elevation, and the curve below is the trajectory the controller settled on.
The source carries nine membership functions to do it: FZ_MaxFurther, FZ_MedFurther and FZ_MinFurther grade how far off the shot is, three more grade the lateral error, and three more grade the correction to apply. Every shot belongs to all of them at once, and the rule with the strongest membership wins. The terrain and icons are line-drawing calls, and the mouse is read straight off interrupt 33h.
Reading the demonstration
A target is selected on the grid. Successive shots feed back into the controller until the target is reached. Follow the aim point and trajectory display.
About this recording and recovery
The recording and description are retained with the software. Where the recorded environment is identified, it is named beneath the recording. No additional repair history is asserted here.
Archive record
- Author
- Amir Husain
- Date
- c. 1995
- Environment
- Borland C, VGA 640×480, int 33h mouse
- Reference
- ATX-SW-SHOOTER
The software archive preserves dates, implementation notes, and surviving source material. Contact the museum to explore the program’s documentation.