enum architecture in client #1

Manually merged
devraza merged 0 commits from enumpattern into main 2025-02-20 11:47:49 +00:00
Owner

So, I restructured the app into separate sections for each menu using enum match statements, so that each game state (i.e. main menu, 40l, login, exit) is separated and easier to reason about. It also makes the code more "Functional programming" style, which I believe removes a lot of headaches with references and such (that's personal perspective). I made it a pull request since its such a big change, and idk if you want to keep it like this (although I'd recommend it)

So, I restructured the app into separate sections for each menu using enum match statements, so that each game state (i.e. main menu, 40l, login, exit) is separated and easier to reason about. It also makes the code more "Functional programming" style, which I believe removes a lot of headaches with references and such (that's personal perspective). I made it a pull request since its such a big change, and idk if you want to keep it like this (although I'd recommend it)
midnadimple added 2 commits 2025-02-20 11:38:03 +00:00
devraza closed this pull request 2025-02-20 11:44:18 +00:00
devraza changed title from WIP: Enum Architecture in txclient to Enum Architecture in txclient 2025-02-20 11:45:54 +00:00
midnadimple reopened this pull request 2025-02-20 11:45:58 +00:00
midnadimple closed this pull request 2025-02-20 11:46:02 +00:00
devraza reopened this pull request 2025-02-20 11:46:05 +00:00
devraza manually merged commit 30f6e5c72a into main 2025-02-20 11:47:49 +00:00
devraza changed title from Enum Architecture in txclient to refdactor: enum architecture in txclient 2025-02-20 11:49:52 +00:00
devraza changed title from refdactor: enum architecture in txclient to refdactor: enum architecture in client 2025-02-20 11:49:57 +00:00
devraza changed title from refdactor: enum architecture in client to refactor: enum architecture in client 2025-02-20 11:50:06 +00:00
devraza changed title from refactor: enum architecture in client to enum architecture in client 2025-02-21 11:02:44 +00:00
devraza added the
refactor
label 2025-02-21 11:02:50 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
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#1
No description provided.