My solution for UC Berkeley AI projects pacman. With autograder, it can get full marks.
Each folder is a Pycharm project that can be opened with Pycham.
Provisional grades
Question q1: 3/3
Question q2: 3/3
Question q3: 3/3
Question q4: 3/3
Question q5: 3/3
Question q6: 3/3
Question q7: 5/4
Question q8: 3/3
Total: 26/25
Question q5
Pacman emerges victorious! Score: 1348
Pacman emerges victorious! Score: 1354
Pacman emerges victorious! Score: 1257
Pacman emerges victorious! Score: 1337
Pacman emerges victorious! Score: 1217
Pacman emerges victorious! Score: 1298
Pacman emerges victorious! Score: 1278
Pacman emerges victorious! Score: 1046
Pacman emerges victorious! Score: 1341
Pacman emerges victorious! Score: 1131
Average Score: 1260.7
Scores: 1348.0, 1354.0, 1257.0, 1337.0, 1217.0, 1298.0, 1278.0, 1046.0, 1341.0, 1131.0
Win Rate: 10/10 (1.00)
Record: Win, Win, Win, Win, Win, Win, Win, Win, Win, Win
*** PASS: test_cases\q5\grade-agent.test (6 of 6 points)
*** 1260.7 average score (2 of 2 points)
*** Grading scheme:
*** < 500: 0 points
*** >= 500: 1 points
*** >= 1000: 2 points
*** 10 games not timed out (1 of 1 points)
*** Grading scheme:
*** < 0: fail
*** >= 0: 0 points
*** >= 10: 1 points
*** 10 wins (3 of 3 points)
*** Grading scheme:
*** < 1: fail
*** >= 1: 1 points
*** >= 5: 2 points
*** >= 10: 3 points
Question q5: 6/6
running game 71 / 71, layouts\test9.lay
Pacman emerges victorious! Score: 2159
Average Score: 2159.462121200507
Scores: 2159.462121200507
Win Rate: 1/1 (1.00)
Record: Win
Final score: 1183.6726140411768
Against the baselineteam, my team can score 6 points.
Red team baselineTeam with {}:
Loading Team: baselineTeam.py
Arguments: {}
Blue team myTeam_xj with {}:
Loading Team: myTeam_xj.py
Arguments: {}
Red team starts
Time is up.
The Blue team wins by 6 points.