Created
February 24, 2013 20:20
-
-
Save anonymous/5025436 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if __name__ == '__main__': | |
PlayAgain = True | |
main() | |
#While loop is used to check if the user wants to play again | |
while PlayAgain: | |
PlayerChoice = input("Would you like to roll again? Please enter 'Yes' or 'No': \n") | |
PlayerChoice = PlayerChoice.lower() | |
if PlayerChoice[0] == "n": | |
PlayAgain = False | |
print("Thanks for using my script!") | |
elif PlayerChoice[0] == "y": | |
main() | |
else: | |
print("Please enter a valid choice.\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment