iremaru / react-tournament

The best and most legendary martial arts tournament under the heavens.
GNU General Public License v3.0
1 stars 0 forks source link

[REQUEST] Add state machine #3

Open iremaru opened 2 weeks ago

iremaru commented 2 weeks ago

Problem: Currently, the actions in the tournament context, as well as the behavior of the components, depend on the current phase of the tournament. During development, it’s common for an action to incorrectly alter the phase, causing the tournament to behave undesirably and extending the development process as developers try to figure out how the bug occurred and how to fix it.

Proposed solution: Use a state machine to control the phase changes of the tournament.

Alternatives XState