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

Fix: stacked units are causing a crash during string rendering #72

Closed royerk closed 2 years ago

royerk commented 2 years ago

What

unit was referenced before assignment in game map string rendering, causing a crash with stacked units.


How

Reference unit whether or not there is a stack in order to use unit.team in both if and else of unit(s) rendering.

glmcdona commented 2 years ago

Thanks, appreciate it @royerk!