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

SpawnCityActionValidation and self.game fix #103

Closed Willyam42 closed 2 years ago

Willyam42 commented 2 years ago

add some checks on the SpawnCityAction in game.validate_command() as advised by author, using the original src/Game/index.ts as model add a class MatchWarn as suggested by original implementation fix an access to game.game.state -> game.state should fix issues: #63 and #102 not formally tested with unit tests. run successfully with python 3.9