try to solve smallClassic

This commit is contained in:
2024-07-18 19:18:55 +08:00
parent 1bf4cc1efe
commit ceae34ea86
6 changed files with 58 additions and 13 deletions

View File

@ -564,7 +564,9 @@ class DeepQLearningTest(testClasses.TestCase):
pacman = pacmanType(self.layout)
# Load Ghost Agent
ghostType = loadAgent("RandomGhost", nographics)
ghost_agent_name="DirectionalGhost"
ghostType = loadAgent(ghost_agent_name, nographics)
print("using ghost agent", ghost_agent_name)
numghosts = 1
ghosts = [ghostType(i+1) for i in range(numghosts)]