Facebook
From Buff Capybara, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 149
  1. n=int(input("Enter number of time player can flip the card"))
  2. play=["Arun","Arya"]
  3. di={'P':7,'Q':10,'R':10,'S':5}
  4. sumar=0
  5. sumay=0
  6. for i in range(n):
  7.     print(play[0]+" flip the card")
  8.     caar=input()
  9.     noar=int(input())
  10.     sumar+=noar*di[caar]
  11.     print(play[1]+" flip the card")
  12.     caay=input()
  13.     noay=int(input())
  14.     sumay+=noay*di[caay]
  15. print("Total scores ",sumar,sumay)
  16. if sumay<sumar:
  17.     print("Arun won the game")
  18. elif sumay>sumar:
  19.     print("Arya won the game")
  20. else:
  21.     print("Game tied")