MASTERMIND PROGRAM Written by Herbert Koenig and Thomas Hoppe, Technical University of Berlin, as a reimplementation of a program by M v Emde. Shelved on 21 August 1993 This program implements the game of Mastermind. Either the user or the program tries to break a hidden color code, consisting of the colors black, blue, red, green, yellow, white. The results of a guess (black: a color is at the right position; or white: a color occurs in the code) are internally represented as successors of 0. This could be extended to handle integers. When the program is making guesses, it uses a simple but powerful generate-and-test procedure is used, where the scores for previous attempts are used as the test criterion. SIZE: 16 kilobytes. CHECKED ON EDINBURGH-COMPATIBLE (POPLOG) PROLOG : no. PORTABILITY : looks pretty good. INTERNAL DOCUMENTATION : Predicates are commented with a statement of their purpose.