print("___________________________________________________________________________________________________________________________________________________________") print("A Random Dice Game") print("In this game, you roll 2 dice to try and get the highest score. However, if you roll a 1 and 1, you lose. Good luck!") import random d1 = 0 d2 = 0 rolls = 0 score = 0 start = 0 start = input(("Do you wish to start then (y/n)? ")) if start == "y" : print("Ok") if start == "n" : print("Too bad") start = 0 while d1 != 1 and d2 != 1 or start != 2 : rolls = rolls + 1 print("Roll", rolls) d1 = random.randint(1,6) d2 = random.randint(1,6) print("Your rolls:", d1 , d2) if d1 == 1 and d2 == 1 : print("Double 1! Unlucky!") start = 2 if start != 2 : score = score + d1 + d2 print("Your score is", score) start = input(("Roll again (y/n)? ")) print("Game Over!") print("Your final score:", score)