auspiciousArtifice / pendragon

A Discord bot for playing the medieval social deception board game, Avalon
MIT License
2 stars 0 forks source link

Refactor next_stage function to be split into multiple functions #64

Open auspiciousArtifice opened 2 years ago

auspiciousArtifice commented 2 years ago

The next_stage function is slowly becoming monolithic, and it would be beneficial to have multiple stages when transitioning to each stage.

For instance, while the setup of the game state and config structs are relatively straightforward for the "Created" stage, the "Nominate" stage has multiple entry points and should have a setup that is agnostic to whichever stage it transitioned from. Otherwise, code might be repeated when transitioning to it.