eugenevinitsky / sequential_social_dilemma_games

Repo for reproduction of sequential social dilemmas
MIT License
387 stars 132 forks source link

Refactor tests so they call methods directly #92

Closed eugenevinitsky closed 5 years ago

eugenevinitsky commented 5 years ago

Currently the test methods do not call the key methods from map_env i.e. step, reset, init but generate the effect of them by calling sub-pieces of each of these methods. This introduces serious potential for error and needs immediate refactoring.

eugenevinitsky commented 5 years ago

I can't call any of these methods because they spawn apples in a stochastic way. Option 1: disable the stochasticity. Option 2: disable the spawning (somehow)