linqs / pacman

Undergraduate AI assignments disguised as Pac-Man!
https://linqs.github.io/pacman/
Other
11 stars 44 forks source link

Misleading search agent instantiation logs #57

Closed fabalchemy closed 2 years ago

fabalchemy commented 2 years ago

The instantiation of certain search agents (AStarCornersAgent for instance) bypasses the parent constructor. As a result, the logs are misleading, because they are printed when the parent class is instantiated with the default values.

# python3 -m pacai.bin.pacman --layout mediumCorners --pacman AStarCornersAgent --null-graphics
INFO - 2022-01-15 21:56:04,233 - [SearchAgent] using problem type pacai.core.search.position.PositionSearchProblem.
INFO - 2022-01-15 21:56:04,233 - [SearchAgent] using function pacai.student.search.depthFirstSearch.
eriq-augustine commented 2 years ago

Fixed by OP in 472f70875b0c80a6e76b0d50932a8f48b1c6937e.