eugenevinitsky / sequential_social_dilemma_games

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

Apples can't spawn where a firing beam is #45

Closed eugenevinitsky closed 5 years ago

eugenevinitsky commented 5 years ago

The order of events is: (1) Move (2) Fire (3) Spawn

However, we currently check in the apple spawn method if a firing beam is in the apple spawn point, and if so, we don't spawn an apple there. However, this leads to two bugs: (1) Apples can't be spawned in points temporarily obscured by a firing beam (2) We check if an agent is currently in that spot before spawning an apple, however, an agent COULD be there and is just temporarily obscured by the beam.