$ python mastermind.py @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Welcome to mastermind. I'm going to create a secret code of four letters taken from the set [a,b,c,d,e,f]. My code will contain only one of each letter from the set. See if you can guess my code in 10 tries or less. After each guess I'll give you a hint as to the number of letters you have correct and how many correct letters are in their exact correct position. Use this information to make a better guess. Good Luck! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Enter guess number 1 : abcd 0 exact matches (letter *and* position correct) 3 partial matches (letter correct, position incorrect) Enter guess number 2 : abce 0 exact matches (letter *and* position correct) 4 partial matches (letter correct, position incorrect) Enter guess number 3 : ecba 0 exact matches (letter *and* position correct) 4 partial matches (letter correct, position incorrect) Enter guess number 4 : bace 1 exact match (letter *and* position correct) 3 partial matches (letter correct, position incorrect) Enter guess number 5 : beac Good for you, you won in 5 guesses!