Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player_one = input()
- player_two = input()
- points_player_one = 0
- points_player_two = 0
- command = input()
- while command != "End of game":
- command_two = input()
- if command > command_two:
- points_player_one += int(command) - int(command_two)
- elif command < command_two:
- points_player_two += int(command_two) - int(command)
- elif command == command_two:
- print("Number wars!")
- card_again = int(input())
- card_again_two = int(input())
- if card_again > card_again_two:
- print(f"{player_one} is winner with {points_player_one} points")
- break
- else:
- print(f"{player_two} is winner with {points_player_two} points")
- break
- command = input()
- if command == "End of game":
- print(f"{player_one} has {points_player_one} points")
- print(f"{player_two} has {points_player_two} points")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement