Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from time import sleep
- from colorama import init, Fore, Style
- import os
- import random
- print(f'''{Fore.LIGHTRED_EX}{Style.BRIGHT}
- ██████╗░██╗░░░██╗ ██╗░░██╗███████╗██╗░░░██╗██████╗░███████╗██╗░░░██╗░██████╗
- ██╔══██╗╚██╗░██╔╝ ██║░██╔╝██╔════╝╚██╗░██╔╝██╔══██╗██╔════╝██║░░░██║██╔════╝
- ██████╦╝░╚████╔╝░ █████═╝░█████╗░░░╚████╔╝░██║░░██║█████╗░░╚██╗░██╔╝╚█████╗░
- ██╔══██╗░░╚██╔╝░░ ██╔═██╗░██╔══╝░░░░╚██╔╝░░██║░░██║██╔══╝░░░╚████╔╝░░╚═══██╗
- ██████╦╝░░░██║░░░ ██║░╚██╗███████╗░░░██║░░░██████╔╝███████╗░░╚██╔╝░░██████╔╝
- ╚═════╝░░░░╚═╝░░░ ╚═╝░░╚═╝╚══════╝░░░╚═╝░░░╚═════╝░╚══════╝░░░╚═╝░░░╚═════╝░''')
- print(Style.RESET_ALL)
- sleep(3.5)
- os.system('cls')
- while True:
- bot_choice = random.choice(['Камень', 'Ножницы', 'Бумага'])
- print(Fore.YELLOW)
- player_choice = str(input("Введите ход: ").lower())
- print(Style.RESET_ALL)
- if bot_choice == 'Камень' and player_choice == 'камень':
- print(f'{Fore.RED}Ничья!')
- print(Style.RESET_ALL)
- elif bot_choice == 'Камень' and player_choice == 'ножницы':
- print(f'{Fore.RED}Вы проиграли!')
- print(Style.RESET_ALL)
- elif bot_choice == 'Камень' and player_choice == 'бумага':
- print(f'{Fore.GREEN}Вы выйграли!')
- sleep(10)
- break
- elif bot_choice == 'Ножницы' and player_choice == 'камень':
- print(f'{Fore.GREEN}Вы выйграли!')
- sleep(10)
- break
- elif bot_choice == 'Ножницы' and player_choice == 'ножницы':
- print(f'{Fore.RED}Ничья!')
- print(Style.RESET_ALL)
- elif bot_choice == 'Ножницы' and player_choice == 'бумага':
- print(f'{Fore.RED}Вы проиграли!')
- print(Style.RESET_ALL)
- elif bot_choice == 'Бумага' and player_choice == 'камень':
- print(f'{Fore.RED}Вы проиграли!')
- print(Style.RESET_ALL)
- elif bot_choice == 'Бумага' and player_choice == 'ножницы':
- print(f'{Fore.GREEN}Вы выйграли!')
- sleep(10)
- break
- elif bot_choice == 'Бумага' and player_choice == 'бумага':
- print(f'{Fore.RED}Ничья!')
- print(Style.RESET_ALL)
- else:
- print(f'{Fore.RED}Вы ввели неправильный ход!')
- print(Style.RESET_ALL)
Advertisement
Add Comment
Please, Sign In to add comment