def endCombat(teamA, teamB):
    """ Return true if one team completely is out of combat. """
    teamAdone = [ person.HP <= 0 for person in teamA ]
    teamBdone = [ person.HP <= 0 for person in teamB ]

    if False in teamAdone and False in teamBdone:
        # someone is still alive, keep going
        return False
    return True