Currently there are infos about "who are werwolves" or who is evil in the util functions getAliveWerwolves and getPlayersFaction. This knowledge should be centralized. I suggest using json for this purpose.
Background: a single source of truth / knowledge is preferable since it is easier to extend and change and consistent. If you encoded the knowledge in different places and later on change it, you need to change it at all location. If one location is forgotten you have created a bug.
Currently there are infos about "who are werwolves" or who is evil in the util functions
getAliveWerwolves
andgetPlayersFaction
. This knowledge should be centralized. I suggest using json for this purpose.Background: a single source of truth / knowledge is preferable since it is easier to extend and change and consistent. If you encoded the knowledge in different places and later on change it, you need to change it at all location. If one location is forgotten you have created a bug.