Rock Paper Scissors - Python 3 - для начинающих
Я полагаю, что имитирую игру ножницами из каменной бумаги, и это то, что я имею до сих пор. Это'не позволяет мне вводить буквы вscoregame
функция. Как я могу это исправить?
def scoregame(player1, player2):
if player1 == R and player2 == R:
scoregame = "It's a tie, nobody wins."
if player1 == S and player2 == S:
scoregame == "It's a tie, nobody wins."
if player1 == P and player2 == P:
scoregame = "It's a tie, nobody wins."
if player1 == R and player2 == S:
scoregame = "Player 1 wins."
if player1 == S and player2 == P:
scoregame = "Player 1 wins."
if player1 == P and player2 == R:
scoregame = "Player 1 wins."
if player1 == R and player2 == P:
scoregame == "Player 2 wins."
if player1 == S and player2 == R:
scoregame == "Player 2 wins."
if player1 == P and player2 == S:
scoregame = "Player 2 wins."
print(scoregame)