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 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([(12.0, 0.1046), (11.0, 0.1784), (9.0, 0.1866), (10.0, 0.1542), (18.0, 0.003), (13.0, 0.0604), (6.0, 0.034), (8.0, 0.1164), (14.0, 0.0328), ((10, 3), 0.0042), (15.0, 0.014), (5.0, 0.0172), (7.0, 0.0614), (2.0, 0.0024), (4.0, 0.0092), (16.0, 0.0092), (17.0, 0.0046), ((12, 3), 0.0006000000000000001), ((11, 3), 0.001), (3.0, 0.0044), ((9, 3), 0.0008), ((6, 3), 0.0002), ((8, 3), 0.0004), ((7.0, 3.0), 0.0), ((3.0, 3.0), 0.0), ((13.0, 3.0), 0.0), ((16.0, 3.0), 0.0), ((15.0, 3.0), 0.0), ((5.0, 3.0), 0.0), ((4.0, 3.0), 0.0), ((14.0, 3.0), 0.0)])
dict_items([((7.0, 3.0), 0.0262), ((8.0, 3.0), 0.087), ((3.0, 3.0), 0.0002), ((13.0, 3.0), 0.0152), ((15.0, 3.0), 0.001), ((16.0, 3.0), 0.0002), ((9.0, 3.0), 0.284), ((11.0, 3.0), 0.1642), ((6.0, 3.0), 0.007), ((4.0, 3.0), 0.0004), ((14.0, 3.0), 0.006), ((10.0, 3.0), 0.3562), ((12.0, 3.0), 0.0508), ((5.0, 3.0), 0.0016), (2.0, 0.0), (3.0, 0.0), (4.0, 0.0), (5.0, 0.0), (6.0, 0.0), (7.0, 0.0), (8.0, 0.0), (9.0, 0.0), (10.0, 0.0), (11.0, 0.0), (12.0, 0.0), (13.0, 0.0),

JOJ Answer

*** None) Joint particle filter elapseTime test: 0 inference errors.
*** PASS: ./test_cases/q10/3-JointParticleFull.test