Toucandigit

MatchMaker

Feb 14th, 2020
705
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.63 KB | None | 0 0
  1. class Name(object):
  2.   def __init__(self, heart):
  3.     self.heart = heart
  4.  
  5.   def __call__(self):
  6.     return (lambda x: sum(x) / len(x) - ord("A"))([ord(i) for i in self.heart])
  7.  
  8. class Love(object):
  9.   def __init__(self, sugar):
  10.     self.sugar = sugar
  11.  
  12.   def __call__(self):
  13.     return Baby(Name(self.sugar), input("Lover 2:"))
  14.  
  15. class Baby(object):
  16.   def __init__(self, spice, nice):
  17.     self.spice = spice
  18.     self.nice = nice
  19.  
  20.   def __call__(self):
  21.     return Dont(self.spice, Name(self.nice))
  22.  
  23. class Dont(object):
  24.   def __init__(self, pb, chocolate):
  25.     self.pb = pb
  26.     self.chocolate = chocolate
  27.  
  28.   def __call__(self):
  29.     return Hurt([self.pb, self.chocolate], self.pb() * self.chocolate())
  30.  
  31. class Hurt(object):
  32.   def __init__(self, valentines, kisses):
  33.     self.valentines = [i() for i in valentines]
  34.     self.kisses = kisses
  35.  
  36.   def __call__(self):
  37.     try:
  38.       return Me(self.kisses / max(self.valentines)**2)
  39.     except ZeroDivisionError:
  40.       return Me(0)
  41.  
  42. class Me(object):
  43.   def __init__(self, cupid):
  44.     self.cupid = cupid
  45.  
  46.   def __call__(self):
  47.     return No(int(self.cupid * 100))
  48.  
  49. class No(object):
  50.   def __init__(self, dance):
  51.     self.dance = dance
  52.  
  53.   def __call__(self):
  54.     if 0 < self.dance < 100:
  55.       return More(self.dance)
  56.     else:
  57.       return More((self.dance >= 100) * 100)
  58.  
  59. class More(object):
  60.   def __init__(self, hugs):
  61.     self.hugs = hugs
  62.  
  63.   def __call__(self):
  64.     print("Love Score:" + str(self.hugs))
  65.  
  66. class Match(object):
  67.   def __init__(self):
  68.     pass
  69.  
  70.   def __call__(self):
  71.     return Love(input("Lover 1:"))
  72.  
  73. Match()()()()()()()()()
Advertisement
Add Comment
Please, Sign In to add comment