Skip to content

Commit

Permalink
add pcman
Browse files Browse the repository at this point in the history
  • Loading branch information
aws1313 committed Jan 30, 2024
1 parent bea2bdc commit cfd574c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,5 @@ fabric.properties
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
Pacman_Complete.zip
game
setup_done.txt
.idea
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ def eval_state(self):
pellets = []
pellets.extend(self.game.pellets.pelletList)
pellets.extend(self.game.pallets_eaten)
print(len(self.game.pallets_eaten))
print(len(self.game.pellets.pelletList))

pellets.sort(key=operator.attrgetter('id'))
ps = []
for p in pellets:
Expand Down

0 comments on commit cfd574c

Please sign in to comment.