Notes
This function is in beta test. Please help improve it in the issues
here.
Traceback (most recent call last): File "autograder.py", line 425, in <module> runTest(options.runTest, moduleDict, printTestCase=options.printTestCase, display=getDisplay(True, options)) File "autograder.py", line 228, in runTest testCase.execute(grades, moduleDict, solutionDict) File "trackingTestClasses.py", line 157, in execute run(self.layout_str, pac, ghosts, disp, maxMoves=self.maxMoves) File "trackingTestClasses.py", line 250, in run games = busters.runGames(lay, pac, ghosts, disp, nGames, maxMoves) File "/out/package/busters.py", line 542, in runGames game.run() File "/out/package/game.py", line 686, in run action = agent.getAction(observation) File "trackingTestClasses.py", line 413, in getAction if not self.firstMove: inf.elapseTime(gameState) File "inference.py", line 569, in elapseTime jointInference.elapseTime(gameState) File "inference.py", line 531, in elapseTime newPosDist = self.getPositionDistribution(gameState, newParticle, i, self.ghos
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 1, which should be 0.
Please double check your code to solve this problem and try again.
Your Answer
dict_items([(3.0, 0.6666666666666667), ((17, 3), 0.015151515151515152), ((9, 3), 0.015151515151515152), ((21, 3), 0.015151515151515152), ((5, 3), 0.015151515151515152), ((1, 3), 0.015151515151515152), ((13, 3), 0.015151515151515152), ((7, 3), 0.015151515151515152), ((20, 3), 0.015151515151515152), ((2, 3), 0.015151515151515152), ((18, 3), 0.015151515151515152), ((15, 3), 0.015151515151515152), ((11, 3), 0.015151515151515152), ((8, 3), 0.015151515151515152), ((12, 3), 0.015151515151515152), ((16, 3), 0.015151515151515152), ((3, 3), 0.015151515151515152), ((22, 3), 0.015151515151515152), ((14, 3), 0.015151515151515152), ((19, 3), 0.015151515151515152), ((4, 3), 0.015151515151515152), ((10, 3), 0.015151515151515152), ((6, 3), 0.015151515151515152)]) dict_items([((7.0, 3.0), 0.0426), ((1.0, 3.0), 0.0592), ((20.0, 3.0), 0.0416), ((17.0, 3.0), 0.048), ((10.0, 3.0), 0.0442), ((3.0, 3.0), 0.0422), ((13.0, 3.0), 0.0434), ((16.0, 3.0), 0.0416), ((6.0, 3.0), 0.0446), ((19.0, 3.0), 0.0412), ((12.0, 3.0), 0.046), ((22.0,
JOJ Answer
*** None) Joint particle filter elapseTime test: 0 inference errors. *** PASS: ./test_cases/q10/1-JointParticlePredict.test