Notes
This function is in beta test. Please help improve it in the issues
here.
Traceback (most recent call last): File "/out/package/game.py", line 694, in run action = timed_func(observation) File "/out/package/util.py", line 675, in __call__ result = self.function(*args, **keyArgs) File "multiagentTestClasses.py", line 190, in getAction studentAction = (self.studentAgent.getAction(state), File "multiAgents.py", line 187, in getAction return max(gameState.getLegalActions(0), key=lambda x: min_value(gameState.generateSuccessor(0, x), 0)) File "multiAgents.py", line 187, in <lambda> return max(gameState.getLegalActions(0), key=lambda x: min_value(gameState.generateSuccessor(0, x), 0)) TypeError: min_value() missing 1 required positional argument: 'ghost'
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.
Please double check your code to solve this problem and try again.
Your Answer
Pacman crashed *** FAIL: ./test_cases/q2/8-pacman-game.test *** Agent crashed on smallClassic. No credit
JOJ Answer
*** PASS: ./test_cases/q2/8-pacman-game.test