while True:
score=0
score1=0
r=1
while score < 10 and score1 < 10:
print(f'Turn{r}')
r+=1
if r == 11:
print(score , score1 )
break
if score > score1:
print(score)
if score1 > score:
print(score1)
player=input('Player Select a enter ===> Rock , Paper , Scissors : ')
player2=input('Player2 Select a enter ===> Rock , Paper , Scissors : ')
if player == 'rock' or player =='sng':
if player2 == 'paper' or player2 == 'kaghz':
print('Player winner ! ')
score+=1
print(score)
elif player == 'paper' or player=='kaghz' or player2 =='rock' or player2=='sng':
print('Player2 winner ! ')
score1+=1
print(score1)
if player2 == 'scissors' or player2=='qeychi' and player =='rock' or player=='sng':
print('Player winner ! ')
score+=1
print(score)
elif player == 'rock ' or player == 'sng' or player2 == 'scissors' or player2=='qeychi':
print('Player winner ! ')
score+=1
print(score)
elif player=='paper' or player=='kaghz' or player2== 'scissors' or player2== 'qeychi':
print('Player2 winner ! ')
score1 +=1
print(score1)
elif player=='scissors' or player == 'qeychi' or player2== 'paper' or player2 =='kaghz':
print('Player winner ! ')
score +=1
while score == 10 or score1==10:
exit(score,score1)
else:
print('Hmchin chizi vojod nadard ya mosavi shodid')
Ветка while True:
4 сообщения · –У S score=0 score1=0 r=1 while True: if score == 10 or score1 == 10: print(score, score1) break print(f'Turn{r}') r+=1 player=input('Player Select a enter ===> Rock , Paper , Scissors : ') player2=input('Player2 Select a enter ===> Rock , Paper , Scissors : ') if player == 'rock' or player =='sng': if player2 == 'paper' or player2 == 'kaghz': print('Player2 winner ! ') score1+=1 elif player2 == 'scissors' or player2=='qeychi': print('Player winner ! ') score+=1 else: print('Hmchin chizi vojod nadard ya mosavi shodid') elif player == 'paper' or player=='kaghz': if player2 == 'rock' or player2=='sng': print('Player winner ! ') score+=1 elif player2 == 'scissors' or player2=='qeychi': print('Player2 winner ! ') score1+=1 else: print('Hmchin chizi vojod nadard ya mosavi shodid') elif player == 'scissors' or player == 'qeychi': if player2 == 'rock' or player2=='sng': print('Player2 winner ! ') score1+=1 elif player2 == 'paper' or player2=='kaghz': print('Player winner ! ') score+=1 else: print('Hmchin chizi vojod nadard ya mosavi shodid') else: print('Hmchin chizi vojod nadard ya mosavi shodid') print(score, score1)У