willowtreeapps / wombats-api

Wombats API
https://github.com/willowtreeapps/wombats-documentation
MIT License
10 stars 4 forks source link

[Refactor] Pull out arena configuration from game creation #273

Open dehli opened 7 years ago

dehli commented 7 years ago

BEFORE SUBMITTING AN ISSUE CHECK THE FOLLOWING:

FEATURE REQUEST?

Currently arena configuration is deeply coupled with the game creation logic. This means that simulation games also have arena configuration (when it doesn't make a ton of sense).

It will be good to refactor the code so that an arena itself could be passed to a game/simulation. Then you can manually create/update arenas, or you could use the existing arena generation logic to randomly generate an arena based on a configuration.