Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

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 586, in observe
    jointInference.observe(gameState)
  File "inference.py", line 495, in observe
    self.observeUpdate(observation, gameState)
  File "inference.py", line 522, in observeUpdate
    newPositions = [

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([((8, 8), 0.16667403892822938), ((4, 6), 0.4497964590046363), ((9, 9), 0.47737804749857454), ((1, 3), 0.48967082668121187), ((2, 3), 0.19068615963922841), ((1, 4), 0.38231592017782784), ((4, 5), 0.8884009695552216), ((5, 6), 0.26175934557810465), ((2, 4), 0.21523099800188147), ((8, 9), 0.1530919172628568), ((6, 6), 0.22587969614876718), ((9, 3), 0.12007164907437878), ((6, 7), 0.24528322200590452), ((4, 7), 0.7325157208791666), ((6, 5), 0.1592873576180428), ((5, 7), 0.29803085311367655), ((2, 8), 0.16407758159494243), ((5, 5), 0.28050553421590646), ((9, 8), 0.14850382313548197)])
dict_items([((4, 7), 0.0526), ((1, 3), 0.0528), ((6, 7), 0.0522), ((4, 6), 0.053), ((6, 6), 0.052), ((5, 6), 0.0532), ((2, 8), 0.052), ((9, 8), 0.053), ((9, 3), 0.0526), ((9, 9), 0.0526), ((1, 4), 0.053), ((8, 9), 0.0528), ((4, 5), 0.0526), ((8, 8), 0.0526), ((2, 3), 0.0528), ((5, 7), 0.052), ((2, 4), 0.0524), ((6, 5), 0.053), ((5, 5), 0.0528)])
*** None) Distribution deviated at move 0 by 2.1276 (squared norm) from the cor

JOJ Answer

*** None) Joint particle filter observeUpdate test: 0 inference errors.
*** PASS: ./test_cases/q9/2-JointParticleUpdate.test