The library master-lib.ss provides the single operation
repl, which implements a simple read-evaluate-guess-and-print
loop. The operation consumes the program check-guess and then
plays MasterMind. The program check-guess is responsible for
comparing the color guesses of a player with the (random) choices of
repl.
The library provides only one operation:
master-lib.ss . Execute
and play as follows:
> (repl check-guess) Your next two guesses please: red black Not quite, but here is a clue: OneColorAtCorrectPosition Your next two guesses please: red green ... Congratulations!