You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
user_input = input("انتخاب کنید (سنگ، کاغذ، قیچی) یا 'خروج' برای پایان: ")
if user_input == "خروج":
print("بازی به پایان رسید.")
break
if user_input not in choices:
print("انتخاب نامعتبر است. لطفا دوباره امتحان کنید.")
continue
computer_choice = random.choice(choices)
print(f"انتخاب کامپیوتر: {computer_choice}")
if user_input == computer_choice:
print("مساوی شد!")
elif (user_input == "سنگ" and computer_choice == "قیچی") or (user_input == "کاغذ" and computer_choice == "سنگ") or (user_input == "قیچی" and computer_choice == "کاغذ"):