Skip to content

Simple word pair game implemented with TCA architecture

Notifications You must be signed in to change notification settings

nikletsopen/TestWordGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TestWordGame

Simple word pair game implemented with TCA architecture

How much time was invested:

About 6 hours of concetrated work

How was the time distributed (concept, model layer, view(s), game mechanics):

  • Concept - 1 hour
  • Model layer - 2 hours
  • View(s) - 1 hour
  • Game mechanics - 1 hour
  • Tests - 1 hour

Decisions made to solve certain aspects of the game:

  • 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)

Decisions made because of restricted time:

  • Kept all logic in one reducer
  • Falling animation is not linked directly to timer, but uses the same global constant

What would be the first thing to improve or add if there had been more time:

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

Preview

Simulator.Screen.Recording.-.iPhone.14.Pro.-.2023-08-28.at.17.23.25.mp4

About

Simple word pair game implemented with TCA architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages