[Tutor] Python Mastermind Help
Amy Davidson
amydavidson at sympatico.ca
Wed Jan 29 23:19:51 CET 2014
Hello,
I’ve been given an assignment in which I need to recreate the game Mastermind. I’ve been attempting it for approx a week with little to no progress. I was hoping someone would be able to point me in the right direction.
here is what I’ve got:
import random
def masterMind():
userGuess = raw_input("Guess my 5 digit password:”)
while True:
if len(userGuess) != 5:
userGuess = input("Guess my 5 digit password:”)
Much appreciated.
AD
More information about the Tutor
mailing list