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 416, in getAction inf.observe(gameState) File "inference.py", line 221, in observe self.observeUpdate(obs, gameState) File "inference.py", line 295, in observeUpdate new_beliefs[pos] = self.beliefs[pos] * self.getObservationProb(observation, gameState.getPacmanPosition(),
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([((1, 3), 0.0), ((1, 4), 0.0), ((1, 5), 0.0), ((1, 6), 0.0), ((2, 3), 0.0), ((2, 4), 0.0), ((2, 6), 0.0), ((3, 3), 0.0), ((3, 4), 0.0), ((3, 6), 0.0), ((4, 3), 0.0), ((4, 4), 0.0), ((4, 6), 0.0), ((5, 3), 0.0), ((5, 4), 0.0), ((5, 6), 0.0), ((6, 3), 0.0), ((6, 4), 0.0), ((6, 6), 0.0), ((7, 3), 0.0), ((7, 4), 0.0), ((7, 5), 0.0), ((7, 6), 0.0), ((8, 3), 0.0), ((8, 4), 0.0), ((8, 6), 0.0), ((9, 3), 0.0), ((9, 4), 0.0), ((9, 6), 0.0), ((10, 3), 0.0), ((10, 4), 0.0), ((10, 6), 0.0), ((11, 3), 0.0), ((11, 4), 0.0), ((11, 6), 0.0), ((12, 3), 0.0), ((12, 4), 0.0), ((12, 6), 0.0), ((13, 3), 0.0), ((13, 4), 0.0), ((13, 6), 0.0), ((14, 3), 0.0), ((14, 4), 0.0), ((14, 5), 0.0), ((14, 6), 0.0), ((15, 3), 0.0), ((15, 4), 0.0), ((15, 6), 0.0), ((16, 3), 0.0), ((16, 4), 0.0), ((16, 5), 0.0), ((16, 6), 0.0), ((17, 3), 0.0), ((17, 4), 0.0), ((17, 6), 0.0), ((18, 3), 0.0), ((18, 4), 0.0), ((18, 5), 0.0), ((18, 6), 0.0), ((1, 1), 0)]) dict_items([((7, 3), 0.05293631100082715), ((1, 3), 0.003308519437551697), ((6, 6),
JOJ Answer
*** None) Exact inference full test: 0 inference errors. *** PASS: ./test_cases/q4/2-ExactFull.test