Enumeration pattern for mutating game state #3

Manually merged
devraza merged 0 commits from enumpattern into main 2025-02-21 11:54:27 +00:00
Owner

Originally implemented in #1 but, after concerns of too much cloning (see #2), added a commit that limits copies to only when game mode completely changes. if the current game mode stays the same, no cloning/copying happens and struct state in the enum is mutated, else the game mode is replaced with a new one when it changes.

Originally implemented in #1 but, after concerns of too much cloning (see #2), added a commit that limits copies to only when game mode completely changes. if the current game mode stays the same, no cloning/copying happens and struct state in the enum is mutated, else the game mode is replaced with a new one when it changes.
devraza manually merged commit 37bd87abde into main 2025-02-21 11:54:27 +00:00
Commenting is not possible because the repository is archived.
No reviewers
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
atiran/txtris!3
No description provided.