Simple word pair game implemented with TCA architecture
About 6 hours of concetrated work
- Concept - 1 hour
- Model layer - 2 hours
- View(s) - 1 hour
- Game mechanics - 1 hour
- Tests - 1 hour
- Introduced TCA architecture to better hanlde different state changes
- Reshuffle tasks each time after fetching to make things more interesting
- When user "quits" - reset the state after he comes back (an app becomes active again)
- Kept all logic in one reducer
- Falling animation is not linked directly to timer, but uses the same global constant
There are several things I'd like to improve. Below they are listed by priority:
- Break the reducer into smaller pieces
- Separate fetching and pasring logic
- Add localization for strings
- Add linter and formatter
- Use "exhaustivity" param to make test more concise
- Write more tests
- Improve falling animation
- Make the false asnwers percentage adjustable