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 31, in getAction scores = [self.evaluationFunction(gameState, action) for action in legalMoves] File "multiAgents.py", line 31, in <listcomp> scores = [self.evaluationFunction(gameState, action) for action in legalMoves] File "multiAgents.py", line 91, in evaluationFunction score+=5*1/time ZeroDivisionError: division by zero 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 31, in getAction scores = [self.evaluationFunction(gameState, action) for action in legalMoves] File "multiAgents.py", line 31, in <listcomp> scores = [self.evaluationFunction
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 Pacman crashed Pacman crashed Pacman crashed Pacman crashed Pacman crashed Pacman crashed Pacman crashed Pacman crashed Pacman crashed *** FAIL: ./test_cases/q1/grade-agent.test (0 of 4 points) *** 0 wins (fail: below minimum value 1)
JOJ Answer
*** PASS: ./test_cases/q1/grade-agent.test (4 of 4 points)