master.ss provides the operation
master. It implements a GUI for playing a simple
master mind-like game. The player clicks on two colors and the
program responds with an answer that indicates how many colors
and places were correct.
master consumes the function
check-guess, which is the key component of
TeachMasterMind. The function
check-guess consumes the two
colors that the player guessed and the two players that the master chose
(randomly at the beginning of the game). It compares the colors and
produces an appropriate symbol.
The teachpack provides only one operation: