Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- import random
- shit = [ "дерьм", "говн", "говнищ", "какашк", "каках", "дерьмец", "говнец", "гавн", "фекали" ]
- eat = [ "жрать", "хавать", "глотать", "проглотить", "съесть", "поесть", "пожрать", "сожрать", "есть", "кушать", "скушать", "покушать" ]
- def root_compare(roots, str):
- wroots = roots.split(' ')
- wstr = str.split(' ')
- for x in range(0, len(wroots)):
- if not wstr[x].startswith(wroots[x]):
- return False
- return True
- def compare(alias_groups, str) :
- if len(alias_groups) == 2:
- for ag1 in alias_groups[0]:
- for ag2 in alias_groups[1]:
- if root_compare(ag1 + " " + ag2, str):
- return True
- return False
- print "Поешь говна. А чтобы выйти Ctrl+C нажми."
- shit_eating = [ "Говнеца ты покушал", "Скушал фекалий ты", "Ты дерьма поел, лол)))" ]
- while True:
- user_input = raw_input('>')
- if compare([eat, shit], user_input):
- print shit_eating[random.randrange(0, len(shit_eating))]
- elif compare([shit, eat], user_input):
- print shit_eating[random.randrange(0, len(shit_eating))]
- else:
- print "Команда не распознана."
Advertisement
Add Comment
Please, Sign In to add comment