Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from colorama import init, Fore, Style
- import os
- import random
- import time
- init()
- print(f'''{Fore.LIGHTRED_EX}{Style.BRIGHT}
- ██████╗░██╗░░░██╗ ██╗░░██╗███████╗██╗░░░██╗██████╗░███████╗██╗░░░██╗░██████╗
- ██╔══██╗╚██╗░██╔╝ ██║░██╔╝██╔════╝╚██╗░██╔╝██╔══██╗██╔════╝██║░░░██║██╔════╝
- ██████╦╝░╚████╔╝░ █████═╝░█████╗░░░╚████╔╝░██║░░██║█████╗░░╚██╗░██╔╝╚█████╗░
- ██╔══██╗░░╚██╔╝░░ ██╔═██╗░██╔══╝░░░░╚██╔╝░░██║░░██║██╔══╝░░░╚████╔╝░░╚═══██╗
- ██████╦╝░░░██║░░░ ██║░╚██╗███████╗░░░██║░░░██████╔╝███████╗░░╚██╔╝░░██████╔╝
- ╚═════╝░░░░╚═╝░░░ ╚═╝░░╚═╝╚══════╝░░░╚═╝░░░╚═════╝░╚══════╝░░░╚═╝░░░╚═════╝░''')
- print(Style.RESET_ALL)
- time.sleep(2.5)
- bot_number = random.randint(0, 20)
- while True:
- print(Fore.LIGHTGREEN_EX)
- user_number = int(input("Введите число от одного до двадцати: "))
- print(Style.RESET_ALL)
- if user_number == bot_number:
- print(f"{Fore.YELLOW}Вы выйграли!")
- print(Style.RESET_ALL)
- time.sleep(10)
- break
- elif user_number > bot_number:
- print(f"{Fore.BLUE}Число меньше :3")
- print(Style.RESET_ALL)
- continue
- elif user_number < bot_number:
- print(f"{Fore.RED}Число больше :3")
- print(Style.RESET_ALL)
- continue
Advertisement
Add Comment
Please, Sign In to add comment