jeudi 2 juillet 2015

Python 2.7.7 Breaking?

I am trying to make a memory game in python 2.7.7 i need some help with My Code.

Guess1_Easy_Removed = raw_input("Which Word Do You Think Was Removed?:")
if Guess1_Easy_Removed == wordList[9]:
    print "Correct!"
else:
    print "Try Again!"
Guess2_Easy_Removed = raw_input("Which Word Do You Think Was Removed?:")
if Guess2_Easy_Removed == wordList[9]:
    print "Correct!"
else:
    print "Try Again!"
Guess3_Easy_Removed = raw_input("Which Word Do You Think Was Removed?:")
if Guess3_Easy_Removed == wordList[9]:
    print "Correct!"
else:
    print "Try Again!"

Guess1_Easy_Substitute= raw_input("Which Word Do You Think Was The Substitute Word?:")
if Guess1_Easy_Substitute == wordList[5]:
    print "Correct!"    
else:
    print "Try Again!"

Guess2_Easy_Substitute= raw_input("Which Word Do You Think Was The Substitute Word?:")
if Guess2_Easy_Substitute == wordList[5]:
    print "Correct!"
else:
    print "Try Again!"
Guess3_Easy_Substitute= raw_input("Which Word Do You Think Was The Substitute Word?:")
if Guess3_Easy_Substitute == wordList[5]:
    print "Correct!"
else:
    print "Try Again!"

The things i need help with are : if the user guesses the removed or substitute word right all other guesses should be stopped. if Removed & substitute words guessed correctly i need to , print "You win" do i need to use the break statement? Thanks

Aucun commentaire:

Enregistrer un commentaire