from os import system
from random import randint
answ = 'да'
answers = ['камень', 'ножницы', 'бумага']
while answ == 'да':
system("cls")
bot_balls = 0
person_balls = 0
while bot_balls < 3 and person_balls < 3:
person = str(input("\nВаш вариант: "))
bot = answers[randint(0, 2)]
print("Я выбрал:", bot)
if person == bot:
print("Ничья")
elif (person == answers[0] and bot == answers[1]) or (person == answers[1] and bot == answers[2]) or (person == answers[2] and bot == answers[1]):
print("Вы победили!")
person_balls += 1
elif (person == answers[0] and bot == answers[2]) or (person == answers[1] and bot == answers[0]) or (person == answers[2] and bot == answers[1]):
print("Вы проиграли!")
bot_balls += 1
print("Счет:", person_balls, ":", bot_balls)
answ = str(input("\nХотите продолжить?: "))
print(" за игру!")
if person_balls > bot_balls:
print("Вы победили со счетом:", person_balls, ":", bot_balls)
else:
print("Вы проигради со счетом:", person_balls, ":", bot_balls)
from os import system
from random import randint
answ = 'да'
answers = ['камень', 'ножницы', 'бумага']
while answ == 'да':
system("cls")
bot_balls = 0
person_balls = 0
while bot_balls < 3 and person_balls < 3:
person = str(input("\nВаш вариант: "))
bot = answers[randint(0, 2)]
print("Я выбрал:", bot)
if person == bot:
print("Ничья")
elif (person == answers[0] and bot == answers[1]) or (person == answers[1] and bot == answers[2]) or (person == answers[2] and bot == answers[1]):
print("Вы победили!")
person_balls += 1
elif (person == answers[0] and bot == answers[2]) or (person == answers[1] and bot == answers[0]) or (person == answers[2] and bot == answers[1]):
print("Вы проиграли!")
bot_balls += 1
print("Счет:", person_balls, ":", bot_balls)
answ = str(input("\nХотите продолжить?: "))
system("cls")
print(" за игру!")
if person_balls > bot_balls:
print("Вы победили со счетом:", person_balls, ":", bot_balls)
else:
print("Вы проигради со счетом:", person_balls, ":", bot_balls)