pucrs-ai-cs/rl-lab

Fix running game in the console:

Closed this issue · 1 comments

➜ python environment.py maps/easiest.txt
INFO:root:Loading map: maps/easiest.txt
It will converge at 0.001
Traceback (most recent call last):
  File "environment.py", line 159, in <module>
    agt.train(env)
  File "/Users/meneguzzi/Documents/pucrs/courses/2021-1/undergrad/AI for CS/coursework/notebooks/rl-lab/link_ref.py", line 48, in train
    action = self.get_action(self.state)
  File "/Users/meneguzzi/Documents/pucrs/courses/2021-1/undergrad/AI for CS/coursework/notebooks/rl-lab/link_ref.py", line 79, in get_action
    return get_action(self,state)
NameError: name 'get_action' is not defined

This error is primarily due to this being empty, stupidity on my part.