Bam4d / python-microRTS

A python client library for microRTS.
Apache License 2.0
19 stars 5 forks source link

fix error when game end🐛 #1

Closed Rouzip closed 4 years ago

Rouzip commented 4 years ago

When game ends, it still calls

        def _process_state_and_get_action(self, state, gameover):
            self.get_grid_from_state(state)     # there

            actions = self.get_action(state, gameover)

            if gameover:
                return None
            else:
                return self._filter_invalid_actions(actions, state)

It will make errors because state doesn't have property "pgs".