Skip to main content
4 of 5
deleted 13 characters in body

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.firstloveis None:
            self.firstlove= other              # madly fall in robolove
            return True
        else if self.firstlobe==other:
            return True
        else:
            return False