def step(self, model):
        self.update_neighbors(model)
        active_neighbors = []
        for agent in self.neighbors:
            if agent.breed == 'citizen' and \
                    agent.condition == 'Active' and \
                    agent.jail_sentence == 0:
                active_neighbors.append(agent)
        if active_neighbors:
            arrestee = random.choice(active_neighbors)
            sentence = random.randint(0, model.max_jail_term)
            arrestee.jail_sentence = sentence
        if model.movement and self.empty_neighbors:
            new_pos = random.choice(self.empty_neighbors)
            model.grid.move_agent(self, new_pos)
Inspect local vision and arrest a random active agent. Move if
dataset/ETHPy150Open projectmesa/mesa/examples/EpsteinCivilViolence/EpsteinCivilViolence.py/Cop.step