This project find the shortest path between pacman position and nearest food and do it for count of foods in selected grid.
Just run pacman.py with
python pacman.py
it uses turtle library for showing the game play.
Before pacman moves it realises the Manhattan distance of each food and choose it as the first in a list, then from that point; find the nearest one and append it to the list and do it in a loop and after that it starts to move.
If you have any questions or comments, please feel free to reach out to me at [[email protected]] or [[email protected]].