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