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
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to