"Mastermind" You are to write a program using CLISP. This program is a simulation of the Mastermind board game. PROGRAM REQUIREMENTS: 1) The program must act as the "Codemaker". A code will be chosen at random. 2) Each turn, the program will prompt the user to enter a choice. 3) The choice will be in the form: C C C C where C is the first letter of a possible color. 4) The program will evaluate the choices of the player, and respond with the current choice and a list of past choices (turns) in the form: # C C C C rrrr where r is either a lower case "b" or "w", representing a "hit" (the right color at the right location) or a "near miss" (a correct color choice, but a wrong position). It should be noted that the location of the black pegs do NOT denote the actual correct location of a choice placement, but rather that one exists. 5) The function to evaluate the choice should be recursive. 6) If the player matches the code, the program should respond with a success message, and terminate. 7) If 10 turns pass and the player has not successfully cracked the code, the program should respond appropriately and terminate.
## Deliverables
1) Completed CLISP program, emailed to me by 12/14/02, Saturday morning around 8:00am - 12:00pm. 2) A fully functional program that does exactly what the program requirements specify.
## Platform
Program needs to run in the CLISP 2.29 environment provided in the .zip file. This program runs on a UNIX based system.