Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor state flags #5

Open
lewster32 opened this issue Dec 5, 2021 · 0 comments
Open

Refactor state flags #5

lewster32 opened this issue Dec 5, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@lewster32
Copy link
Owner

A lot of the game's state is contained in flags, which is less than ideal, as many (most?) combinations of flags are invalid. This screams 'finite state machine' as a solution (I've heard mention before that games and UI should be practically all driven by FSMs) so let's look at that shall we? There are already several enums (including an unused one on the Piece class) which can be used for this purpose.

@lewster32 lewster32 added the enhancement New feature or request label Dec 5, 2021
@lewster32 lewster32 self-assigned this Dec 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant