$ python mm.py
-------- mastermind v0.1 ----------
I am thinking of a 4-letter code. Each letter
in the code is one of 6 possibilities: ABCDEF.
For example, the code could be DCBF, or BECC.
You have 12 guesses to break the code!
After each guess, I will tell you how many
exact and partial matches you have.
1: hello
please enter a valid code!
1: abc
please enter a valid code!
1: wxyz
please enter a valid code!
1: abcd
0 exact matches
2 partial matches
--------------------
2: CDEF
0 exact matches
2 partial matches
--------------------
3: dcdc
0 exact matches
0 partial matches
--------------------
4: dbug
....debugging help: EFAB
4: eeee
1 exact match
0 partial matches
--------------------
5: quit
You *lose*...the code was EFAB
Return to Lab 07
Example 1