This document is a write-up for the DECUS program 'Hexapawn' (DECUS No. FOCAL8-9). The program is written in FOCAL-8 for use on PDP-8 computers with at least 8K of memory. Hexapawn is a strategy game played on a 3x3 board where each player has three pawns. The objective of the program is to demonstrate machine learning: the computer starts by making random moves and eventually 'learns' to avoid losing moves, effectively becoming unbeatable by identifying and rejecting bad moves based on previous game results. The document includes a description of how the board and moves are stored, instructions on initializing and using the program, a flow chart for the learning logic, and the complete source code listing.
Site structure and layout ©2026 Majenko Technologies