I am working on a Pacman RL project and need to validate that there are a correct number of state permutations that I generated. My logic is as follows:
There are 15 player positions, 15 ghost positions, 15 positions that can have/not have a pellet. A ghost and a player can occupy the same spot, and a player or a ghost can occupy a spot where there is a pellet. This would give $$ 15\cdot15\cdot2^{15} $$
Would this be correct, if not why so? The code which I wrote to generate these permutations finds approximately 3.6 million possible permutations but my logic says there are approximately 7.3 million permutations.
Thanks in advance!