linqs / pacman

Undergraduate AI assignments disguised as Pac-Man!
https://linqs.github.io/pacman/
Other
11 stars 44 forks source link

Crash when training a Q-learning agent #60

Closed fabalchemy closed 2 years ago

fabalchemy commented 2 years ago

The application crashes when the user tries to train a Q-learning agent.

$ python3 -m pacai.bin.gridworld --agent q

File "pacman/pacai/ui/gridworld/gui.py", line 62, in displayQValues
    drawQValues(self.gridworld, qValues, currentState, message)
File "pacman/pacai/ui/gridworld/gui.py", line 157, in drawQValues
    q[action] += v

KeyError: 'north'
eriq-augustine commented 2 years ago

The TAs just raised this issue and are in the process of fixing it now. Expect a fix and communication within an hour.

fabalchemy commented 2 years ago

Fixed in d01626b7edc77b67b75b6ccb4be33f326953e9d4