TimothyGillespie / WerwolfSpielleiterToolWeb

0 stars 0 forks source link

Single Source of Knowledge for roles #24

Open TimothyGillespie opened 4 years ago

TimothyGillespie commented 4 years ago

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.