Gomoko, or Gomoku, is a traditional game in the Orient. it is played by two people on a board of intersecting lines. Players take turns. During his turn, a player may cover one intersection with a marker. The object of the game is to get five adjacent markers in a row, horizontally, vertically or along either diagonal.
The original author of this program is Peter Sessions.
The game is published as type-in source code in Basic Computer Games (Microcomputer Edition), ed. David H. Ahl with Steve North, Workman Publishing, New York, 1978 (ISBN 0-89480-052-3).
The BASIC source code listing is published in Microsoft BASIC 3.0; suggestions for conversion to a wide range of other BASIC implementations are provided.
N.B. the computer is a notoriously poor player in this implementation.