joshzcold / Cold-Family-Feud

Host your own Family Feud game. Mobile friendly with built in buzzers.
https://famf.app
MIT License
72 stars 42 forks source link

JSON's are cluttered by state data #73

Closed theredwillow closed 7 months ago

theredwillow commented 7 months ago

The games folder's JSON files are filled with unnecessary game state such as "selection" and "input". These things can be added when the state is initialized and greatly alleviate the readability of the library data.

joshzcold commented 7 months ago

Yes it would be nice to remove the state data. We need to make sure that old created games when loaded don't conflict with new logic to add the state data. which shouldn't be a problem.

theredwillow commented 7 months ago

Making the initialized state data be optionally provided fields in the JSON seems like the way to approach that. Old versions would work, new versions would work, and people who want to preselect the answer for whatever reason can do that too.

joshzcold commented 7 months ago

Closed by https://github.com/joshzcold/Cold-Family-Feud/pull/80