Itangalo / Bot-Playtesting-Toolkit

A toolkit for simulating board games with Google spreadsheets. Intended use is board game development.
GNU General Public License v3.0
9 stars 1 forks source link

Have a pluggable main system? #5

Closed Itangalo closed 2 years ago

Itangalo commented 2 years ago

The current framework is meant to be hacked and changed. Most custom stuff can go into separate files and functions, but they then hard-coded into the simulation.

An alternative would be to have a pluggable system, that calls different functions depending on some setting. This would force a better architecture for the framework and also allow running tests (as a special type of game "simulation").

On the other hand, it would be difficult to have a framework that is flexible enough to allow simulating a wide enough range of games without hacking it.

Worth thinking about.

Itangalo commented 2 years ago

All custom code is now moved into a modules object, making it possible to switch to a completely different simulation by switching module name. Default is "example".