glmcdona / LuxPythonEnvGym

Matching python environment code for Lux AI 2021 Kaggle competition, and a gym interface for RL models.
MIT License
73 stars 38 forks source link

AttributeError: 'Game' object has no attribute 'game' #102

Closed Willyam42 closed 2 years ago

Willyam42 commented 2 years ago

game.py:395 if "log" in self.configs and self.configs["log"]: self.log('Processing turn ' + self.game.state["turn"])

shouldn't it be self.state["turn"] ? the following seems to fix my issue at least: if "log" in self.configs and self.configs["log"]: self.log('Processing turn ' + str(self.state["turn"]))

glmcdona commented 2 years ago

Thanks for finding this issue and solving it for us, appreciate it!