Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- start_numbers = int(input())
- score_combined = 0
- total = 0
- num_moves = 0
- while start_numbers > 0:
- sector = input()
- score = int(input())
- num_moves += 1
- if sector == "double ring":
- score = score * 2
- elif sector == "triple ring":
- score = score * 3
- elif sector == "number section":
- score = score
- #elif sector == "bullseye":
- #score = 0
- elif score < 0:
- print("Sorry, you lose.")
- start_numbers = start_numbers - score
- total = start_numbers
- if total == 0:
- print(f"Congratulations! You won the game in {num_moves} moves!")
- elif sector == "Bullseye":
- print(f"Congratulations! You won the game with bullseye in {num_moves} moves!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement