Skip to content

simulator not updating local 'self' agent #5

@acutesoftware

Description

@acutesoftware

vais/simulator.py

Line 107

The method does not make use of the class instance it gets passed. Hence, it should be declared as a static method using the @staticmethod decorator.
print(agent.name, 'fights')

def _move_agent(self, agent, direction, wrap_allowed=True):
  • found by quantifiedcode

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions