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 "multiAgents.py", line 211, in getAction scores = [self.expectimax_evaluation(gameState.generateSuccessor(0, action), 1, self.depth) for action in legalMoves] File "multiAgents.py", line 211, in <listcomp> scores = [self.expectimax_evaluation(gameState.generateSuccessor(0, action), 1, self.depth) for action in legalMoves] File "multiAgents.py", line 221, in expectimax_evaluation scores = [self.expectimax_evaluation(nowState.generateSuccessor(agentIndex, action), nextIndex, depth) for action in legalMoves] File "multiAgents.py", line 221, in <listcomp> scores = [self.expectimax_evaluation(nowState.generateSuccessor(agentIndex, action), nextIndex, depth) for action in legalMoves] File "multiAgents.py", line 221, in expectimax_evaluation scores = [self.expectimax_
Hints
Your answer may be identical to the JOJ answer in the first several lines.
However, the main problem you meet now is Runtime Error. And the exit code of your program is 120, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
Pacman crashed Pacman crashed Pacman crashed Pacman crashed Pacman crashed Pacman crashed Pacman crashed Pacman crashed
JOJ Answer
*** PASS: ./test_cases/q5/grade-agent.test (6 of 6 points)