Skip to content

Commit

Permalink
changed direction to _direction (#73)
Browse files Browse the repository at this point in the history
The direction variable was not named correctly. Should be self._direction instead of self.direction. (Batu found this issue.)
  • Loading branch information
OliverLok authored Dec 7, 2023
1 parent ca93927 commit dc496c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pacai/core/agentstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@ def __str__(self):
scaredString = '!'

return "%s%s: Position: %s, Direction: %s" % (typeString, scaredString,
str(self._position), str(self.direction))
str(self._position), str(self._direction))

0 comments on commit dc496c7

Please sign in to comment.