The Hopeless Romantic
This hopelessy romantic bot falls in love with the first robot it ever sees, and will pursue its subject of aspirations til the end of times. Which, it turns out, is quite long for robots.
class HopeLessRomantic:
"""
This hopelessy romantic bot falls in love with the first robot it ever sees, and will pursue its subject of aspirations til the end of warranty. Which is long for robots.
"""
def __init__(self, nrof_bots, rng):
# nrof_bots is the total number of bots playing
self.firstlove= None
def round_finished(self, nrof_remaining_bots):
#alas! the light of my live has rejected me. *sad robot noise*
pass
def date(self, other) -> bool:
if self.firstloveisfirstlove is None:
self.firstlove= other # madly fall in robolove
return True
else ifelif self.firstlobe==otherfirstlove==other:
return True
else:
return False