How to use the drama.AsymmetricFriendship function in drama

To help you get started, we’ve selected a few drama examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github james-owen-ryan / talktown / drama.py View on Github external
def _excavate_asymmetric_friendships(self):
        """Recognizes cases where a character A considers another, B, to be a friend,
        while B considers A to be an enemy.
        """
        asymmetric_friendships = []
        for person in self.simulation.town.residents:
            for friend in person.friends:
                if friend.dislikes(person):
                    asymmetric_friendships.append(AsymmetricFriendship(subjects=(person, friend)))
        return asymmetric_friendships

drama

Delft Radar Modelling and perfornance Analysis (DRaMA)

GPL-3.0
Latest version published 1 year ago

Package Health Score

41 / 100
Full package analysis

Similar packages