CMU Artificial Intelligence Repository
Home INFO Search FAQs Repository Root

Prolog program that plays the Mastermind code-breaking game.

lang/prolog/code/fun/mastermd/
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, where the scores for previous attempts are used as the test criterion.
Origin:   

   src.doc.ic.ac.uk:packages/prolog-pd-software/ (146.169.2.1)
   as mastermind.zip

Version: 21-AUG-83 CD-ROM: Prime Time Freeware for AI, Issue 1-1 Author(s): Herbert Koenig and Thomas Hoppe Technical University of Berlin This is a reimplementation of a program by M. van Emde. Keywords: Authors!Hoppe, Authors!Koenig, Mastermind, Prolog!Code, Prolog!Fun Programs, Technical Univ. of Berlin References: Emde, M.v., "Relational Programming", Research Report CS-78-48, DCS, Univ. of Waterloo, Canada, 1978. Coelho, H., and Cotta, J.C., "Prolog by Example", Symbolic Computation, Springer-Verlag, Berlin, 1988.
Last Web update on Mon Feb 13 10:33:40 1995
AI.Repository@cs.cmu.edu